You are here

function node_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 'node_skinr_preprocess_hook_callback'
node_skinr_config in modules/node.skinr.inc
Implementation of hook_skinr_config().

File

modules/node.skinr.inc, line 83
Provide skinr handling for node.module

Code

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