You are here

function system_settings_service_import in Deploy - Content Staging 6

Same name and namespace in other branches
  1. 5 services/system_settings_service/system_settings_service.module \system_settings_service_import()

Import system settings that use system_settings_form().

Just takes the submitted form values and passes them straight in to system_settings_form_submit().

@todo Needs error handling

Parameters

$form_values: The $form_values array from a submitted system_settings_form().

Return value

bool

1 string reference to 'system_settings_service_import'
system_settings_service_service in services/system_settings_service/system_settings_service.module
Implementation of hook_service().

File

services/system_settings_service/system_settings_service.inc, line 24
Service for the management of system settings that used Drupals' system_settings_form() API.

Code

function system_settings_service_import($form_values) {
  $form = array();
  $form_state = array();
  $form_state['values'] = $form_values;
  system_settings_form_submit($form, $form_state);
  watchdog("Services", "System Settings Import Service run for {$form_id}.");
  drupal_flush_all_caches();
  return TRUE;
}