You are here

function panels_skinr_preprocess_hook_callback in Skinr 6.2

Same name and namespace in other branches
  1. 6 modules/panels.skinr.inc \panels_skinr_preprocess_hook_callback()

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 'panels_skinr_preprocess_hook_callback'
panels_skinr_config in modules/panels.skinr.inc
Implementation of hook_skinr_config().

File

modules/panels.skinr.inc, line 360
Provide skinr handling for panels.module.

Code

function panels_skinr_preprocess_hook_callback(&$form, $form_state) {
  switch ($form['#parameters'][1]['type']) {
    case 'display':
      return 'panels_display';
    case 'region':
      return 'panels_region';
    case 'pane':
      return 'panels_pane';
  }
}