On this page
function system_block_view
system_block_view($delta = '')
Implements hook_block_view().
Generate a block with a promotional link to Drupal.org and all system menu blocks.
File
- modules/system/system.module, line 2080
- Configuration system that lets administrators modify the workings of the site.
Code
function system_block_view($delta = '') {
$block = array();
switch ($delta) {
case 'main':
$block['subject'] = NULL;
$block['content'] = drupal_set_page_content();
return $block;
case 'powered-by':
$block['subject'] = NULL;
$block['content'] = theme('system_powered_by');
return $block;
case 'help':
$block['subject'] = NULL;
$block['content'] = menu_get_active_help();
return $block;
default:
// All system menu blocks.
$system_menus = menu_list_system_menus();
if (isset($system_menus[$delta])) {
$block['subject'] = t($system_menus[$delta]);
$block['content'] = menu_tree($delta);
return $block;
}
break;
}
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.module/function/system_block_view/7.x