function search_files_attachments_settings_form in Search Files 6.2
Same name and namespace in other branches
- 7.2 search_files_attachments.module \search_files_attachments_settings_form()
generate the settings form for the search_files module using the system_settings_form() function
1 string reference to 'search_files_attachments_settings_form'
- search_files_attachments_menu in ./
search_files_attachments.module - Implementation of hook_menu().
File
- ./
search_files_attachments.module, line 283 - Used to index files in attachments
Code
function search_files_attachments_settings_form() {
$form = array();
$form['search_files_attachments_tab_label'] = array(
'#title' => 'Search Label',
'#type' => 'textfield',
'#description' => 'What do you want the Search tab to be labeled?',
'#default_value' => variable_get('search_files_attachments_tab_label', t('Attachments')),
);
$form['search_files_attachments_tab_disabled'] = array(
'#title' => t('Disable search attachments tab'),
'#type' => 'checkbox',
'#default_value' => variable_get('search_files_attachments_tab_disabled', FALSE),
'#return_value' => 1,
);
return system_settings_form($form);
}