You are here

function uuid_features_settings_submit in UUID Features Integration 7

Submit function for uuid_features_settings().

1 string reference to 'uuid_features_settings_submit'
uuid_features_settings in ./uuid_features.module
Menu callback to configure module settings.

File

./uuid_features.module, line 428
UUID Features module allows to export data stored in the db by features.

Code

function uuid_features_settings_submit($form, &$form_state) {
  foreach ($form_state['values'] as $key => $value) {
    if (preg_match('/^uuid_features_(entity|file)_/', $key) && is_array($value)) {
      foreach ($value as $type => $state) {
        variable_set("{$key}_{$type}", $state);
      }
      unset($form_state['values'][$key]);
    }
  }
}