You are here

function template_preprocess_mostpopular_block in Drupal Most Popular 7

@file Defines all the pages, blocks and themes for rendering the most popular data to general users.

1 string reference to 'template_preprocess_mostpopular_block'
mostpopular_theme in ./mostpopular.module
Implements hook_theme().

File

./mostpopular.theme.inc, line 18
Defines all the pages, blocks and themes for rendering the most popular data to general users.

Code

function template_preprocess_mostpopular_block(&$variables) {
  $variables['attributes_array']['data-bid'] = $variables['bid'];
  $variables['services'] = theme('mostpopular_services', array(
    'services' => $variables['services'],
  ));
  $variables['intervals'] = theme('mostpopular_intervals', array(
    'intervals' => $variables['intervals'],
  ));
}