You are here

function registration_views_set_state_action_form in Entity Registration 7

Same name and namespace in other branches
  1. 8.2 modules/registration_views/registration_views.module \registration_views_set_state_action_form()
  2. 8 modules/registration_views/registration_views.module \registration_views_set_state_action_form()
  3. 7.2 modules/registration_views/registration_views.module \registration_views_set_state_action_form()

Per-action form for executing a bulk operation.

Simply adds a form to select what state to set when performing a VBO set_state_action.

File

modules/registration_views/registration_views.module, line 107
Entity Registration Views integration

Code

function registration_views_set_state_action_form($settings) {
  $form = array();
  $form['registration_state'] = array(
    '#type' => 'select',
    '#title' => t('Status'),
    '#options' => registration_get_states_options(),
    '#default_value' => !empty($settings['settings']['default_registration_state']) ? $settings['settings']['default_registration_state'] : '',
  );
  return $form;
}