function fusion_apply_data_handler in Fusion Accelerator 7
Same name and namespace in other branches
- 7.2 fusion_apply/fusion_apply.handlers.inc \fusion_apply_data_handler()
Fusion Apply data handler.
Parameters
&$form: Passes in the $form parameter from hook_form_submit().
$form_state: Passes in the $form_state parameter from hook_form_submit().
$theme: The theme that is currently being processed.
$module: The module that is currently being processed.
$form_settings: The settings from hook_fusion_apply_config() for the form that's currently being processed.
Return value
A Fusion Apply settings object.
1 string reference to 'fusion_apply_data_handler'
- fusion_apply_config_info_default in fusion_apply/
fusion_apply.module - Prepare default configuration data for modules.
File
- fusion_apply/
fusion_apply.handlers.inc, line 85 - Defines the various default handler functions to support Fusion Apply.
Code
function fusion_apply_data_handler(&$form, $form_state, $theme, $module, $form_settings) {
// Ensure we have the required index_handler
if (empty($form_settings['index_handler'])) {
trigger_error(sprintf("No index_handler was found for form_id '%s' in module '%s'.", $form_id, $module), E_USER_ERROR);
}
$element = fusion_apply_handler('form_index_handler', 'form', $form_settings['index_handler'], $form, $form_state);
$params = array(
'theme' => $theme,
'module' => $module,
'element' => $element,
);
return fusion_apply_skin_load_multiple(fusion_apply_skin_get_sids($params));
}