function menu_variable_info in Variable 7
Same name and namespace in other branches
- 7.2 includes/menu.variable.inc \menu_variable_info()
Implements hook_variable_info().
File
- includes/
menu.variable.inc, line 10 - Variable API module. Definition for Drupal core variables
Code
function menu_variable_info($options) {
$variables['menu_main_links_source'] = array(
'type' => 'select',
'title' => t('Source for the Main links'),
'options' => 'menu',
'default' => 'main-menu',
'element' => array(
'#empty_option' => t('No Main links'),
),
'description' => t('Select what should be displayed as the Main links (typically at the top of the page).', array(), $options),
'group' => 'menu_settings',
);
$variables['menu_secondary_links_source'] = array(
'type' => 'select',
'title' => t('Source for the Secondary links'),
'options' => 'menu',
'default' => 'user-menu',
'element' => array(
'#empty_option' => t('No Secondary links'),
),
'description' => t('Select the source for the Secondary links.', array(), $options),
'group' => 'menu_settings',
);
return $variables;
}