function template_preprocess_double_field_item in Double Field 8.3
Same name and namespace in other branches
- 4.x double_field.module \template_preprocess_double_field_item()
Prepares variables for double-field-item template.
File
- ./
double_field.module, line 31 - Primary module hooks for Double Field module.
Code
function template_preprocess_double_field_item(&$vars) {
$vars['settings'] = $vars['elements']['#settings'];
$vars['item']['first'] = $vars['elements']['#item']->first;
$vars['item']['second'] = $vars['elements']['#item']->second;
}