You are here

function template_preprocess_mostpopular_services in Drupal Most Popular 7

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

File

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

Code

function template_preprocess_mostpopular_services(&$variables) {
  $variables['theme_hook_suggestions'][] = 'item_list__mostpopular_services';
  $variables['theme_hook_suggestions'][] = 'item_list';
  $variables += array(
    'attributes' => array(),
    'title' => NULL,
    'type' => 'ul',
    'items' => array(),
  );
  $variables['attributes']['class'][] = 'mostpopular--services';
  foreach ($variables['services'] as $sid => $service) {
    $variables['items'][$sid] = array(
      'data' => theme('mostpopular_service', array(
        'service' => $service,
      )),
      'data-sid' => $sid,
    );
  }
}