function admin_menu_toolbar_admin_menu_output_build

nittany7 admin_menu_toolbar.module admin_menu_toolbar_admin_menu_output_build(&$content)
cis7 admin_menu_toolbar.module admin_menu_toolbar_admin_menu_output_build(&$content)
mooc7 admin_menu_toolbar.module admin_menu_toolbar_admin_menu_output_build(&$content)

Implements hook_admin_menu_output_build().

File

modules/contrib/admin_menu/admin_menu_toolbar/admin_menu_toolbar.module, line 61
Renders Administration menu like Toolbar (core) module.

Code

function admin_menu_toolbar_admin_menu_output_build(&$content) {
  if (empty($content['#components']['shortcut.links']) && !$content['#complete']) {
    return;
  }
  // Add shortcuts toggle.
  $content['shortcut-toggle'] = array(
    '#access' => module_exists('shortcut'),
    '#weight' => -200,
    '#type' => 'link',
    '#title' => t('Show shortcuts'),
    '#href' => '',
    '#options' => array(
      'attributes' => array('class' => 'shortcut-toggle'),
    ),
  );

  // Add shortcuts bar.
  $content['shortcut'] = array(
    '#access' => module_exists('shortcut'),
    '#weight' => 200,
    '#prefix' => '<div class="shortcut-toolbar">',
    '#suffix' => '</div>',
  );
  $content['shortcut']['shortcuts'] = array(
    
    // Shortcut module's CSS relies on Toolbar module's markup.
    // @see http://drupal.org/node/1217038
    '#prefix' => '<div id="toolbar">',
    '#suffix' => '</div>',
    
    // @todo Links may contain .active-trail classes.
    '#pre_render' => array('shortcut_toolbar_pre_render'),
  );
}