You are here

function _skinr_fetch_config_defaults in Skinr 6.2

Fetch default configuration data for modules.

3 calls to _skinr_fetch_config_defaults()
skinr_ui_form_alter in ./skinr_ui.module
Implementation of hook_form_alter().
skinr_ui_form_submit in ./skinr_ui.module
Submit handler.
skinr_ui_form_validate in ./skinr_ui.module
Validation handler.

File

./skinr.module, line 1079

Code

function _skinr_fetch_config_defaults($setting) {
  switch ($setting) {
    case 'form':
      $data = array(
        'access_handler' => 'skinr_access_handler',
        'data_handler' => 'skinr_data_handler',
        'submit_handler' => 'skinr_submit_handler',
        'submit_handler_attach_to' => array(
          '#submit',
        ),
        'skinr_title' => t('Skinr'),
        'skinr_weight' => 1,
        'title' => '',
        'description' => t('Manage which skins you want to apply to the hooks'),
        'collapsed' => TRUE,
        'weight' => 0,
      );
      return $data;
  }
}