diff sites/all/themes/omega/preprocess/poll-results.preprocess.inc @ 0:ff03f76ab3fe

initial version
author danieleb <danielebarchiesi@me.com>
date Wed, 21 Aug 2013 18:51:11 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/omega/preprocess/poll-results.preprocess.inc	Wed Aug 21 18:51:11 2013 +0100
@@ -0,0 +1,14 @@
+<?php
+
+/**
+ * Implements hook_preprocess_poll_results__block().
+ */
+function omega_preprocess_poll_results(&$variables) {
+  // Change the links to a render array with sensible, BEM based classes instead
+  // of a string.
+  $variables['links'] = array(
+    '#theme' => 'links',
+    '#links' => $variables['raw_links'],
+    '#attributes' => array('class' => array('links', 'poll-results__links')),
+  );
+}