You are here

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

File

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

Code

function panels_skinr_ajax_preprocess_hook_callback(&$form, $form_state) {
  if (strpos($form['skinr']['sid']['#value'], '-region-') !== FALSE) {
    return 'panels_region';
  }
  elseif (strpos($form['skinr']['sid']['#value'], '-pane-') !== FALSE) {
    return 'panels_pane';
  }
  else {
    return 'panels_display';
  }
}