function workbench_scheduler_form_node_type_form_alter in Workbench Scheduler 7
Content Type Edit Form.
File
- ./
workbench_scheduler.module, line 1401 - Content scheduling for Workbench.
Code
function workbench_scheduler_form_node_type_form_alter(&$form, &$form_state, $form_id) {
// Add Workbench Scheduler options.
$form['workflow']['workbench_scheduler'] = array(
'#type' => 'checkboxes',
'#title' => t('Workbench Scheduler'),
'#options' => array(
'workbench_scheduler_limit_current_revision' => t('Allow active schedule for latest revisions only'),
),
'#states' => array(
'visible' => array(
':input[name="node_options[moderation]"]' => array(
'checked' => TRUE,
),
),
),
'#weight' => 1,
'#default_value' => variable_get('workbench_scheduler_' . $form['#node_type']->type, array()),
);
}