You are here

function _workflow_fields_settings in Workflow Fields 5

1 string reference to '_workflow_fields_settings'
workflow_fields_menu in ./workflow_fields.module

File

./workflow_fields.module, line 357
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_hide_read_only_when_editing'] = array(
    '#type' => 'checkbox',
    '#title' => t('Hide read-only fields when editing'),
    '#default_value' => variable_get('workflow_fields_hide_read_only_when_editing', FALSE),
    '#description' => t('Check this box to hide read-only fields from the editing form.'),
  );
  return system_settings_form($form);
}