function admin_menu_toolbar_admin_menu_output_alter

cis7 admin_menu_toolbar.module admin_menu_toolbar_admin_menu_output_alter(&$content)
cle7 admin_menu_toolbar.module admin_menu_toolbar_admin_menu_output_alter(&$content)
elmsmedia7 admin_menu_toolbar.module admin_menu_toolbar_admin_menu_output_alter(&$content)
icor7 admin_menu_toolbar.module admin_menu_toolbar_admin_menu_output_alter(&$content)
meedjum_blog7 admin_menu_toolbar.module admin_menu_toolbar_admin_menu_output_alter(&$content)
mooc7 admin_menu_toolbar.module admin_menu_toolbar_admin_menu_output_alter(&$content)

Implements hook_admin_menu_output_alter().

File

sites/all/modules/ulmus/admin_menu/admin_menu_toolbar/admin_menu_toolbar.module, line 97
Renders Administration menu like Toolbar (core) module.

Code

function admin_menu_toolbar_admin_menu_output_alter(&$content) {
  // Add a class to top-level items for styling.
  if (isset($content['menu'])) {
    foreach (element_children($content['menu']) as $link) {
      $content['menu'][$link]['#attributes']['class'][] = 'admin-menu-toolbar-category';
    }
  }

  // Alter icon.
  if (isset($content['icon'])) {
    unset($content['icon']['icon']['#theme']);
    $content['icon']['icon']['#title'] = '<span>' . t('Home') . '</span>';
    $content['icon']['icon']['#attributes']['class'][] = 'admin-menu-toolbar-category';
  }

  // Alter user account link.
  if (isset($content['account'])) {
    $content['account']['account']['#title'] = t('Hello <strong>@username</strong>', array('@username' => $content['account']['account']['#title']));
    $content['account']['account']['#options']['html'] = TRUE;
  }
}
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.