You are here

function template_preprocess_brightcove_cck_node_image in Brightcove Video Connect 6

Same name and namespace in other branches
  1. 6.2 brightcove_cck/brightcove_cck.formatters.inc \template_preprocess_brightcove_cck_node_image()

Template preprocess for brightcove_cck_node_image theme file. Suggest templates based on a field and type name.

1 string reference to 'template_preprocess_brightcove_cck_node_image'
brightcove_cck_theme in brightcove_cck/brightcove_cck.module
Implementation of hook_theme().

File

brightcove_cck/brightcove_cck.formatters.inc, line 271
Formatters for video CCK field.

Code

function template_preprocess_brightcove_cck_node_image(&$vars) {
  $vars['template_files'] = array(
    'brightcove-cck-node-image--' . $vars['image_field'],
    'brightcove-cck-node-image--' . $vars['field_name'] . '--' . $vars['image_field'],
    'brightcove-cck-node-image--' . $vars['type_name'] . '--' . $vars['field_name'] . '--' . $vars['image_field'],
  );
}