function flag_lists_settings_form in Flag Lists 6
Same name and namespace in other branches
- 7.3 flag_lists.admin.inc \flag_lists_settings_form()
- 7 flag_lists.admin.inc \flag_lists_settings_form()
Flag lists settings page.
1 string reference to 'flag_lists_settings_form'
- flag_lists_menu in ./
flag_lists.module - Implementation of hook_menu().
File
- ./
flag_lists.admin.inc, line 195 - Contains administrative pages for creating, editing, and deleting flag lists.
Code
function flag_lists_settings_form(&$form_state) {
drupal_set_title('Flag lists settings');
$form['text'] = array(
'#title' => t('Using flag lists'),
'#value' => t('Flag lists allow users to create their own personal flags.
No user can add to another user\'s lists. Lists inherit their
settings from template flags, which exist as flags in the flags\' module.'),
);
$form['flag_lists_name'] = array(
'#type' => 'textfield',
'#title' => t('Substitute "list" with your own terminology'),
'#default_value' => variable_get('flag_lists_name', t('list')),
'#description' => t('You can choose to use another name for "list", such as "favorites" or "bookmarks". Lowercase and plural names usually work best.'),
'#required' => TRUE,
);
$form['rebuild'] = array(
'#type' => 'fieldset',
'#title' => t('Global rebuild'),
'#description' => t('Changes to list templates and settings normally apply
to only newly created flags. However, you can globally apply changes here.
First adjust the settings above and the list templates and save them. Then
click the link below. This will change ALL existing flag lists. It cannot
be undone.'),
'#tree' => FALSE,
);
$form['rebuild']['global_rebuild'] = array(
'#value' => l('Rebuild all flag lists.', 'admin/build/flag_lists/rebuild'),
);
return system_settings_form($form);
}