accountmenu.admin.inc in Account menu 6
Same filename and directory in other branches
accountmenu.admin.inc admin/settings/accountmenu form constructor
File
accountmenu.admin.incView source
<?php
/**
* @file accountmenu.admin.inc
* admin/settings/accountmenu form constructor
*/
/**
* Returns the Account Menu settings form.
*/
function accountmenu_settings_form() {
$options = menu_get_menus();
$description = t('The Account menu links are currently in "!name". They can be moved to be part of another menu.', array(
'!name' => $options[variable_get('accountmenu_menu_name', 'accountmenu')],
));
// cannot choose the current value
unset($options[variable_get('accountmenu_menu_name', 'accountmenu')]);
if (variable_get('accountmenu_menu_name', 'accountmenu') != 'accountmenu') {
$description .= ' ' . t('Or in the "!name" by themselves.', array(
'!name' => 'Account menu',
));
}
$form['accountmenu_menu_name'] = array(
'#type' => 'select',
'#title' => t('Move the links to'),
'#options' => $options,
'#description' => $description,
);
$form = system_settings_form($form);
$form['#submit'][] = '_accountmenu_reset_menu';
return $form;
}
Functions
Name | Description |
---|---|
accountmenu_settings_form | Returns the Account Menu settings form. |