view 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 source
<?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')),
  );
}