system_render_block

5.x system.module system_render_block($delta)
4.x system.module system_render_block($delta)

File

modules/system/system.module, line 1760

Code

function system_render_block($delta) {
  $block = array();

  if ($delta == "tools") {
    $block["title"] = t("Tools");
    $block["body"] = fp_render_menu_block("", "tools");
  }

  if ($delta == "admin_tools") {
    $block["title"] = t("Administrative Tools");
    $block["body"] = fp_render_menu_block("", "admin-tools");
  }

  if ($delta == "login_form") {
    $block["title"] = t("Please log in below...");
    $block["body"] = fp_render_form("system_login_form");
  }


  // We don't want empty blocks to show up at all.
  if ($block["body"] == "") {
    return FALSE;
  }


  return $block;
}