You are here

views_handler_filter_watchdog_severity.inc in Views Watchdog 6

Views callbacks for the "Views watchdog" module.

File

views/handlers/views_handler_filter_watchdog_severity.inc
View source
<?php

/**
 * @file
 *   Views callbacks for the "Views watchdog" module.
 */

/**
 *
 */
class views_handler_filter_watchdog_severity extends views_handler_filter_in_operator {
  function get_value_options() {
    if (!isset($this->value_options)) {
      $options = array();
      foreach (views_watchdog_get_severity() as $key => $value) {
        $options[$value['arg']] = $value['title'];
      }
      $this->value_options = $options;
    }
  }

}