You are here

function comment_fusion_apply_preprocess_hook_callback in Fusion Accelerator 7.2

Same name and namespace in other branches
  1. 7 fusion_apply/modules/comment.fusion.inc \comment_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 'comment_fusion_apply_preprocess_hook_callback'
comment_fusion_apply_config_info in fusion_apply/modules/comment.fusion.inc
Implements hook_fusion_apply_config_info().

File

fusion_apply/modules/comment.fusion.inc, line 83
Provide skins handling for comment.module

Code

function comment_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[] = 'comment_wrapper_' . $form['fusion_apply']['element']['#value'];
  }
  else {
    $preprocess_hooks[] = 'comment_wrapper_' . $form['#node_type']->type;
  }
  $preprocess_hooks[] = 'comment_wrapper';
  return $preprocess_hooks;
}