function template_preprocess_mostpopular_items in Drupal Most Popular 7        
                          
                  
                        
1 string reference to 'template_preprocess_mostpopular_items'
  - mostpopular_theme in ./mostpopular.module
- Implements hook_theme().
File
 
   - ./mostpopular.theme.inc, line 84
- Defines all the pages, blocks and themes for rendering the most popular
data to general users.
Code
function template_preprocess_mostpopular_items(&$variables) {
  $variables['theme_hook_suggestions'][] = 'item_list__mostpopular_items';
  $variables['theme_hook_suggestions'][] = 'item_list';
  $variables += array(
    'attributes' => array(),
    'title' => NULL,
    'type' => 'ul',
  );
  $variables['attributes']['class'][] = 'mostpopular--items';
  foreach ($variables['items'] as $key => $item) {
    $variables['items'][$key] = array(
      'data' => theme('mostpopular_item', array(
        'item' => $item,
      )),
      'data-count' => $item->count,
    );
  }
  if (empty($variables['items'])) {
    $variables['theme_hook_suggestions'][] = 'mostpopular_items__none';
  }
}