You are here

function opigno_menu in Opigno 7.0

Same name and namespace in other branches
  1. 7 opigno.module \opigno_menu()

Implements hook_menu()

File

./opigno.module, line 16
Contains all hook_implementations and module specific API.

Code

function opigno_menu() {
  $menu = array();
  if (module_exists('opigno_simple_ui')) {

    // Top level "Opigno" menu.

    /*$menu[opigno_simple_ui_get_admin_root()] = array(
        'title' => "Opigno",
        'description' => "Administer the suite of Opigno modules.",
        'page callback' => 'system_admin_menu_block_page',
        'access arguments' => array('access administration pages'),
        'file' => 'system.admin.inc',
        'file path' => drupal_get_path('module', 'system'),
        'weight' => -6
      );*/
  }
  $admin_root_path = opigno_get_admin_root_path('config', 'config');
  $menu[$admin_root_path] = array(
    'title' => module_exists('opigno_simple_ui') ? "Configuration" : "Opigno",
    'description' => "Administer the suite of Opigno modules.",
    'page callback' => 'system_admin_menu_block_page',
    'access arguments' => array(
      'access administration pages',
    ),
    'file' => 'system.admin.inc',
    'file path' => drupal_get_path('module', 'system'),
    'options' => array(
      'attributes' => array(
        'class' => array(
          'icon-settings',
          'opigno-admin-config',
        ),
      ),
    ),
    'type' => MENU_NORMAL_ITEM,
    'weight' => -50,
  );
  return $menu;
}