function autosave_admin_settings in Autosave 6.2
Same name and namespace in other branches
- 5.3 autosave.module \autosave_admin_settings()
- 5 autosave.module \autosave_admin_settings()
- 5.2 autosave.module \autosave_admin_settings()
- 6 autosave.module \autosave_admin_settings()
- 7.2 autosave.module \autosave_admin_settings()
- 7 autosave.module \autosave_admin_settings()
Menu callback; return the autosave module settings form.
1 string reference to 'autosave_admin_settings'
- autosave_menu in ./
autosave.module - Implementation of hook_menu().
File
- ./
autosave.module, line 72 - Does background saves of node being edited.
Code
function autosave_admin_settings() {
$form['autosave_period'] = array(
'#type' => 'textfield',
'#title' => t('Autosave after this amount seconds has passed'),
'#default_value' => variable_get('autosave_period', 10),
);
$form['autosave_hidden'] = array(
'#prefix' => '<div class="form-item"><label for="edit-autosave-hidden">' . t('Stealth Mode') . '</label>',
'#type' => 'checkbox',
'#title' => t('Run in stealth mode'),
'#description' => t('If this check box is selected no popup will appear notifying user that the form has been autosaved.'),
'#default_value' => variable_get('autosave_hidden', 0),
'#suffix' => "</div>",
);
return system_settings_form($form);
}