You are here

function template_preprocess_featured_content_empty in Featured Content 7

Same name and namespace in other branches
  1. 6.2 featured_content.module \template_preprocess_featured_content_empty()
  2. 6 featured_content.module \template_preprocess_featured_content_empty()
  3. 7.2 featured_content.module \template_preprocess_featured_content_empty()

Process variables for featured_content-empty.tpl.php.

See also

featured_content-empty.tpl.php

template_preprocess_featured_content_block

File

./featured_content.module, line 141
Featured Content module for created related & featured content blocks.

Code

function template_preprocess_featured_content_empty(&$variables) {
  $variables['block_classes_array'][] = 'featured-content-block-' . $variables['block_settings']['delta'];
  $variables['block_classes_array'][] = 'featured-content-block-' . $variables['block_settings']['type'];
  $variables['block_classes'] = check_plain(implode(' ', $variables['block_classes_array']));
  $variables['theme_hook_suggestions'][] = 'featured_content_empty__' . $variables['block_settings']['type'];
  $variables['theme_hook_suggestions'][] = 'featured_content_empty__' . $variables['block_settings']['delta'];
}