function system_settings_service_service in Deploy - Content Staging 6
Same name and namespace in other branches
- 5 services/system_settings_service/system_settings_service.module \system_settings_service_service()
Implementation of hook_service().
File
- services/
system_settings_service/ system_settings_service.module, line 36 - Service for the management of system settings that used Drupals' system_settings_form() API.
Code
function system_settings_service_service() {
$services = array();
// system_settings.import
$services[] = array(
'#method' => 'system_settings.import',
'#access callback' => 'system_settings_service_import_access',
'#callback' => 'system_settings_service_import',
'#file' => array(
'file' => 'inc',
'module' => 'system_settings_service',
),
'#args' => array(
array(
'#name' => 'settings',
'#type' => 'struct',
'#description' => t('Array of system settings form values.'),
),
),
'#return' => 'string',
'#help' => t('Import system settings'),
);
return $services;
}