function menu_variable_info in Variable 7.2
Same name and namespace in other branches
- 7 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',
);
$variables['menu_parent_[node_type]'] = array(
'type' => 'multiple',
'title' => t('Menu parent'),
'repeat' => array(
'type' => 'select',
'options' => 'menu',
),
'group' => 'menu_settings',
'description' => t('Select the menu parent', array(), $options),
);
$variables['menu_options_[node_type]'] = array(
'type' => 'multiple',
'title' => t('Menu options'),
'repeat' => array(
'type' => 'options',
'options' => 'menu',
),
'description' => t('Select the available menus', array(), $options),
'group' => 'menu_settings',
);
return $variables;
}