diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-10-07 17:01:22 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-10-07 17:01:22 -0300 |
commit | eccd915b23e2ea7a1485ecceae9e89ecc2e5c3f7 (patch) | |
tree | ede7023eb76bcbb8b3ba45e3ef840a1e3dd19b43 /muamba.handlers.inc | |
parent | f8da1aa6b4c77e839fde883e2aef244b4fe18bf8 (diff) | |
download | muamba-eccd915b23e2ea7a1485ecceae9e89ecc2e5c3f7.tar.gz muamba-eccd915b23e2ea7a1485ecceae9e89ecc2e5c3f7.tar.bz2 |
Adding active, created and changed db fields
Diffstat (limited to 'muamba.handlers.inc')
-rw-r--r-- | muamba.handlers.inc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/muamba.handlers.inc b/muamba.handlers.inc index 16c1f38..28f5753 100644 --- a/muamba.handlers.inc +++ b/muamba.handlers.inc @@ -30,3 +30,24 @@ class views_handler_filter_muamba_status extends views_handler_filter_in_operato } } } + +/** + * Active transactions. + * + * @todo + */ +class views_handler_field_muamba_active extends views_handler_field_boolean { + /** + * Override parent::query() and don't alter query. + */ + function query() { + $this->field_alias = 'muamba_active_'. $this->position; + } + + /** + * Renders the field. + */ + function render($values) { + parent::render($values); + } +} |