diff options
-rw-r--r-- | muamba.handlers.inc (renamed from views/muamba.handlers.inc) | 7 | ||||
-rw-r--r-- | muamba.info | 1 | ||||
-rw-r--r-- | muamba.module | 3 | ||||
-rw-r--r-- | muamba.views.inc (renamed from views/muamba.views.inc) | 15 |
4 files changed, 5 insertions, 21 deletions
diff --git a/views/muamba.handlers.inc b/muamba.handlers.inc index 9c5c6b9..2f5d9a7 100644 --- a/views/muamba.handlers.inc +++ b/muamba.handlers.inc @@ -5,12 +5,11 @@ * Contains the muamba transaction status views field handler. */ -class views_handler_field_muamba_status extends views_handler_field_field { +class views_handler_field_muamba_status extends views_handler_field { /** * Renders the field. */ function render($values) { - return $values; - } - } + return muamba_statuses($values->muamba_status); + } } diff --git a/muamba.info b/muamba.info index 68ef7de..0ef5128 100644 --- a/muamba.info +++ b/muamba.info @@ -4,6 +4,7 @@ core = 7.x files[] = muamba.module files[] = muamba.install files[] = muamba.misc.inc +files[] = muamba.handlers.inc dependencies[] = features dependencies[] = strongarm dependencies[] = muamba_interface diff --git a/muamba.module b/muamba.module index ccaed41..5e3880a 100644 --- a/muamba.module +++ b/muamba.module @@ -275,7 +275,6 @@ function muamba_user_delete($account) { */ function muamba_views_api() { return array( - 'api' => 3, - 'path' => drupal_get_path('module', 'muamba') . '/views', + 'api' => 3, ); } diff --git a/views/muamba.views.inc b/muamba.views.inc index 831fe71..05e2980 100644 --- a/views/muamba.views.inc +++ b/muamba.views.inc @@ -108,18 +108,3 @@ function muamba_views_data() { return $data; } - -/** - * Implements hook_views_handlers() - */ -function muamba_views_handlers() { - $common = array( - 'parent' => 'views_handler_field', - 'file' => 'muamba.handlers.inc', - ); - return array( - 'handlers' => array( - 'views_handler_field_muamba_status' => $common, - ), - ); -} |