You are here

function skinr_data_handler in Skinr 6

Same name and namespace in other branches
  1. 6.2 skinr.handlers.inc \skinr_data_handler()
1 string reference to 'skinr_data_handler'
_skinr_fetch_data_defaults in ./skinr.module
Fetch default configuration data for modules.

File

includes/handlers.inc, line 45
Defines the various handler objects to support Skinr.

Code

function skinr_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);
  }
  $index = skinr_handler('form_index_handler', 'form', $form_settings['index_handler'], $form, $form_state);
  return skinr_get($theme, $module, $index);
}