You are here

function sharebar_admin_menu_block_page in ShareBar 6

Same name and namespace in other branches
  1. 7.2 sharebar.admin.inc \sharebar_admin_menu_block_page()
  2. 7 sharebar.admin.inc \sharebar_admin_menu_block_page()

Provide a single block from the administration menu as a page.

File

./sharebar.admin.inc, line 398
Admin page callbacks for the block module.

Code

function sharebar_admin_menu_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;
}