You are here

function comment_skinr_preprocess_hook_callback in Skinr 6.2

Skinr 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

The preprocess_hook we wish to use.

Related topics

1 string reference to 'comment_skinr_preprocess_hook_callback'
comment_skinr_config in modules/comment.skinr.inc
Implementation of hook_skinr_config().

File

modules/comment.skinr.inc, line 85
Provide skinr handling for comment.module

Code

function comment_skinr_preprocess_hook_callback(&$form, $form_state) {
  $preprocess_hooks = array();
  if (!isset($form['#node_type']->type) && !empty($form['skinr']['sid']['#value'])) {
    $preprocess_hooks[] = 'comment_wrapper_' . $form['skinr']['sid']['#value'];
  }
  else {
    $preprocess_hooks[] = 'comment_wrapper_' . $form['#node_type']->type;
  }
  $preprocess_hooks[] = 'comment_wrapper';
  return $preprocess_hooks;
}