You are here

function workbench_access_form_node_type_form_alter in Workbench Access 7

Implements hook_form_FORM_ID_alter().

Add access rules to node types.

File

./workbench_access.module, line 1883
Workbench Access module file.

Code

function workbench_access_form_node_type_form_alter(&$form, $form_state) {
  $form['workflow']['workbench_access_node_type'] = array(
    '#title' => t('Enforce Workbench Access control'),
    '#type' => 'checkbox',
    '#default_value' => variable_get('workbench_access_node_type_' . $form['#node_type']->type, 1),
    '#description' => t('Use Workbench Access to enforce editorial control to all content of this type.'),
  );
}