function autoassignrole_admin_block_page in Auto Assign Role 7.2
Same name and namespace in other branches
- 7 autoassignrole.admin.inc \autoassignrole_admin_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/structure/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.
Return value
String The output HTML.
1 string reference to 'autoassignrole_admin_block_page'
- autoassignrole_menu in ./
autoassignrole.module - Implements hook_menu().
File
- ./
autoassignrole.admin.inc, line 19 - Administrative functionality for auto assign role.
Code
function autoassignrole_admin_block_page() {
$item = menu_get_item();
if ($content = system_admin_menu_block($item)) {
$output = theme('admin_block_content', array(
'content' => $content,
));
}
else {
$output = t('You do not have any administrative items.');
}
return $output;
}