You are here

function revisioning_condition_revision_is_form in Revisioning 6.4

Same name and namespace in other branches
  1. 6.3 revisioning.rules.inc \revisioning_condition_revision_is_form()

File

./revisioning.rules.inc, line 53
Rules integration for Revisioning module.

Code

function revisioning_condition_revision_is_form($settings = array(), &$form) {
  $form['settings']['revision_type'] = array(
    '#type' => 'select',
    '#title' => t('Is one of'),
    '#options' => _revisioning_revision_states(),
    '#multiple' => TRUE,
    '#default_value' => isset($settings['revision_type']) ? $settings['revision_type'] : array(),
    '#required' => TRUE,
  );
}