function panels_fusion_apply_preprocess_hook_callback in Fusion Accelerator 7
Same name and namespace in other branches
- 7.2 fusion_apply/modules/panels.fusion.inc \panels_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 'panels_fusion_apply_preprocess_hook_callback'
- panels_fusion_apply_config_info in fusion_apply/
modules/ panels.fusion.inc - Implements hook_fusion_apply_config_info().
File
- fusion_apply/
modules/ panels.fusion.inc, line 40 - Provide skins handling for panels.module.
Code
function panels_fusion_apply_preprocess_hook_callback(&$form, $form_state) {
if (strpos($form['fusion_apply']['element']['#value'], 'region') === 0) {
return 'panels_region';
}
elseif (strpos($form['fusion_apply']['element']['#value'], 'pane') === 0) {
return 'panels_pane';
}
else {
return 'panels_display';
}
}