system_admin_menu_block_page
modules/system/system.admin.inc, строка 72
- Версии
- 5 – 6
system_admin_menu_block_page()
Provide a single block from the administration menu as a page.
This function is often a destination for these blocks.
For example, 'admin/content/types'
needs to have a destination to be valid
in the Drupal menu system, but too much information there might be
hidden, so we supply the contents of the block.
Возвращаемое значение
The output HTML.
Код
<?php
function system_admin_menu_block_page() {
$item = menu_get_item();
if ($content = system_admin_menu_block($item)) {
$output = theme('admin_block_content', $content);
}
else {
$output = t('You do not have any administrative items.');
}
return $output;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии