function tmgmt_handler_field_tmgmt_message_message::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
- views/
handlers/ tmgmt_handler_field_tmgmt_message_message.inc, line 21
Class
- tmgmt_handler_field_tmgmt_message_message
- Field handler which allows to render the job message with replaced variables.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['format'] = array(
'#type' => 'select',
'#title' => t('Format'),
'#description' => t("Choose whether the field should display the raw text or display formatted text with replaced variables with it's values."),
'#default_value' => $this->options['format'],
'#options' => array(
'formatted' => t('Formatted'),
'raw' => t('Raw'),
),
);
}