function macro_admin_settings in Macro 7
Same name and namespace in other branches
- 6 macro.module \macro_admin_settings()
Menu callback for the macro settings form.
2 string references to 'macro_admin_settings'
- macro_form_alter in ./
macro.module - Implementation of hook_form_alter().
- macro_menu in ./
macro.module - Implementation of hook_menu().
File
- ./
macro.module, line 355 - allow administrators to record (export) form submissions allow administrators to replay (import) form submissions
Code
function macro_admin_settings() {
$form['settings_general'] = array(
'#type' => 'fieldset',
'#title' => t('Macro settings'),
'#collapsible' => TRUE,
);
$form['settings_general']['macro_enabled'] = array(
'#type' => 'checkbox',
'#title' => t('Enable macro recording'),
'#default_value' => variable_get('macro_enabled', FALSE),
'#description' => t('Set whether the macro engine will record form submissions.'),
);
$form['settings_general']['macro_display_actions'] = array(
'#type' => 'checkbox',
'#title' => 'Display Actions',
'#description' => 'Add "import / export" buttons at the bottom of each form that is displayed.',
'#default_value' => variable_get('macro_display_actions', FALSE),
);
$form['settings_general']['macro_delete'] = array(
'#type' => 'checkbox',
'#title' => t('Delete recorded macro'),
'#default_value' => variable_get('macro_delete', FALSE),
'#description' => t('Set whether to clear previously recorded macro.'),
);
return system_settings_form($form);
}