function hook_sidebar_left_links_alter

This hook allows a module to modify the links which appear on the left sidebar.

File

includes/hook.api.php, line 54
Lists all available hooks within FlightPath's core code.

Code

function hook_sidebar_left_links_alter($bool_for_hamburger_menu, &$links) {


  if (module_enabled('XYZ')) {
    $links [] = array(
      'path' => 'tools/xyz',
      'icon' => 'fa-suitcase',
      'desc' => t('XYZ'),
      'class' => 'xyz',
      'weight' => 550,
    );
  }

  // No need to return anything, $links is passed by reference.

}