function admin_menu_toolbar_admin_menu_output_build

cis7 admin_menu_toolbar.module admin_menu_toolbar_admin_menu_output_build(&$content)
cle7 admin_menu_toolbar.module admin_menu_toolbar_admin_menu_output_build(&$content)
elmsmedia7 admin_menu_toolbar.module admin_menu_toolbar_admin_menu_output_build(&$content)
icor7 admin_menu_toolbar.module admin_menu_toolbar_admin_menu_output_build(&$content)
meedjum_blog7 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

sites/all/modules/ulmus/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'),
  );
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.