views_handler_filter_system_status.inc in Views System 7.3
Same filename and directory in other branches
Views filter handler for the views_system module.
File
views/handlers/views_handler_filter_system_status.incView source
<?php
/**
* @file
* Views filter handler for the views_system module.
*/
/**
* Provides status filter options for the system item.
*
* @ingroup views_filter_handlers
*/
class views_handler_filter_system_status extends views_handler_filter_boolean_operator {
function get_value_options() {
if (isset($this->definition['type'])) {
if ($this->definition['type'] == 'true-false') {
$this->value_options = array(
1 => t('True'),
0 => t('False'),
);
}
if ($this->definition['type'] == 'yes-no') {
$this->value_options = array(
1 => t('Yes'),
0 => t('No'),
);
}
if ($this->definition['type'] == 'on-off') {
$this->value_options = array(
1 => t('On'),
0 => t('Off'),
);
}
}
if (!isset($this->value_options)) {
$this->value_options = array(
1 => t('Enabled'),
0 => t('Disabled'),
);
}
}
}
Classes
Name | Description |
---|---|
views_handler_filter_system_status | Provides status filter options for the system item. |