You are here

function template_preprocess_fieldable_panels_pane in Fieldable Panels Panes (FPP) 7

Preprocess function for fieldable-panels-pane.tpl.php.

File

./fieldable_panels_panes.module, line 918
Maintains an entity that appears as panel pane content.

Code

function template_preprocess_fieldable_panels_pane(&$vars) {
  $vars += array(
    'content' => array(),
  );
  foreach (element_children($vars['elements']) as $key) {
    $vars['content'][$key] = $vars['elements'][$key];
  }

  // Make the field variables available with the appropriate language.
  field_attach_preprocess('fieldable_panels_pane', $vars['elements']['#element'], $vars['content'], $vars);
  $vars['theme_hook_suggestions'][] = 'fieldable_panels_pane__' . $vars['elements']['#element']->bundle;
}