You are here

function node_fusion_apply_preprocess_hook_callback in Fusion Accelerator 7

Same name and namespace in other branches
  1. 7.2 fusion_apply/modules/node.fusion.inc \node_fusion_apply_preprocess_hook_callback()

Fusion Apply preprocess hook callback.

Parameters

&$form: Passes in the $form parameter from hook_form_alter().

$form_state: Passes in the $form_state parameter from hook_form_alter().

Return value

An array of preprocess hooks we wish to use.

Related topics

1 string reference to 'node_fusion_apply_preprocess_hook_callback'
node_fusion_apply_config_info in fusion_apply/modules/node.fusion.inc
Implements hook_fusion_apply_config_info().

File

fusion_apply/modules/node.fusion.inc, line 82
Provide skins handling for node.module

Code

function node_fusion_apply_preprocess_hook_callback(&$form, $form_state) {
  $preprocess_hooks = array();
  if (!isset($form['#node_type']->type) && !empty($form['fusion_apply']['element']['#value'])) {
    $preprocess_hooks[] = 'node_' . $form['fusion_apply']['element']['#value'];
  }
  else {
    $preprocess_hooks[] = 'node_' . $form['#node_type']->type;
  }
  $preprocess_hooks[] = 'node';
  return $preprocess_hooks;
}