function workflow_fields_settings in Workflow Fields 6
Same name and namespace in other branches
- 7 workflow_fields.module \workflow_fields_settings()
1 string reference to 'workflow_fields_settings'
- workflow_fields_menu in ./
workflow_fields.module - Implementation of hook_menu().
File
- ./
workflow_fields.module, line 470 - This module adds to workflow.module the ability to specify, for each state, which node fields should be visible and/or editable. It is a useful feature when workflows demand that certain information be hidden or read-only to certain roles.
Code
function workflow_fields_settings() {
$form['workflow_fields_edit_invisible_when_editing'] = array(
'#type' => 'checkbox',
'#title' => t('Edit fields marked as "not visible" but "editable" when editing.'),
'#default_value' => variable_get('workflow_fields_edit_invisible_when_editing', TRUE),
);
$form['workflow_fields_hide_read_only_when_editing'] = array(
'#type' => 'checkbox',
'#title' => t('Hide fields marked as "not editable" when editing.'),
'#default_value' => variable_get('workflow_fields_hide_read_only_when_editing', FALSE),
);
return system_settings_form($form);
}