You are here

function helper_admin_menu_output_alter in Helper 7

Implements hook_admin_menu_output_alter().

File

./helper.admin_menu.inc, line 78
Administration menu integration for the Helper module.

Code

function helper_admin_menu_output_alter(array &$content) {

  // For older 7.x-3.x versions of admin_menu, show the entire devel menu.
  // @see http://drupal.org/node/1899474 is fixed.
  if (isset($content['icon']['icon']['devel-variables'])) {
    unset($content['icon']['icon']['devel-variables']);
    if (module_exists('devel')) {
      $devel_tree = menu_tree_all_data('devel');
      if ($devel_tree = admin_menu_links_menu($devel_tree)) {
        $content['icon']['icon']['devel'] = array(
          '#title' => t('Devel'),
          '#href' => '#',
          '#options' => array(
            'external' => TRUE,
          ),
        ) + $devel_tree;
      }
    }
  }
}