You are here

function views_handler_field_watchdog_message::options_form in Views Watchdog 6.2

Same name and namespace in other branches
  1. 6.3 views/handlers/views_handler_field_watchdog_message.inc \views_handler_field_watchdog_message::options_form()
  2. 6 views/handlers/views_handler_field_watchdog_message.inc \views_handler_field_watchdog_message::options_form()
  3. 7.3 views/handlers/views_handler_field_watchdog_message.inc \views_handler_field_watchdog_message::options_form()

File

views/handlers/views_handler_field_watchdog_message.inc, line 28
Views field handler for the views_watchdog module.

Class

views_handler_field_watchdog_message
Provides message display options for the watchdog entry.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['watchdog_message_format'] = array(
    '#type' => 'checkbox',
    '#title' => t('Format this field'),
    '#description' => t('Format as log message otherwise raw text.'),
    '#default_value' => !empty($this->options['watchdog_message_format']),
  );
  $form['watchdog_message_link'] = array(
    '#type' => 'checkbox',
    '#title' => t('Link this field to its message'),
    '#description' => t('This will override any other link you have set.'),
    '#default_value' => !empty($this->options['watchdog_message_link']),
  );
}