You are here

function _skinr_fetch_data_defaults in Skinr 6

Fetch default configuration data for modules.

3 calls to _skinr_fetch_data_defaults()
skinr_form_alter in ./skinr.module
Implementation of hook_form_alter().
skinr_form_submit in ./skinr.module
Submit handler.
skinr_form_validate in ./skinr.module
Validation handler.

File

./skinr.module, line 692

Code

function _skinr_fetch_data_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 this'),
        'collapsed' => TRUE,
        'weight' => 0,
      );
      return $data;
  }
}