workbench_events_ui.class.php in Workbench Moderation 7.2
File
modules/workbench_workflows/plugins/export_ui/workbench_events_ui.class.php
View source
<?php
module_load_include('php', 'workbench_workflows', 'plugins/export_ui/workbench_base_ui.class');
class workbench_events_ui extends workbench_base_ui {
function edit_form(&$form, &$form_state) {
parent::edit_form($form, $form_state);
$form['schedulable'] = array(
'#type' => 'checkbox',
'#default_value' => !empty($form_state['item']->schedulable) || isset($form_state['item']->name) && $form_state['item']->name == 'schedule',
'#title' => t('Schedulable'),
'#description' => t('Allow scheduling by State Flow Schedule'),
'#access' => module_exists('state_flow_schedule'),
);
$form['target_state'] = array(
'#type' => 'select',
'#options' => workbench_workflows_options('states'),
'#default_value' => $form_state['item']->target_state,
'#title' => t('Target State'),
'#description' => t(""),
);
$form['origin_states'] = array(
'#type' => 'checkboxes',
'#options' => workbench_workflows_options('states'),
'#default_value' => $form_state['item']->origin_states,
'#title' => t('Origin States'),
'#description' => t(""),
);
}
function edit_form_basic_validate($form, &$form_state) {
parent::edit_form_validate($form, $form_state);
}
}