function tmgmt_local_task_handler_field_job_item_count::options_form in Translation Management Tool 7
Default options form provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- translators/
tmgmt_local/ views/ handlers/ tmgmt_local_task_handler_field_job_item_count.inc, line 20
Class
- tmgmt_local_task_handler_field_job_item_count
- Field handler to show the amount of job items per task.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$options = array(
'' => t('- All -'),
);
$options += tmgmt_job_item_states();
$form['state'] = array(
'#title' => t('Job item state'),
'#description' => t('Count only job items of a certain state.'),
'#type' => 'select',
'#options' => $options,
'#default_value' => $this->options['state'],
);
}