function services_edit_form_endpoint_authentication_submit in Services 6.3
Same name and namespace in other branches
- 7.3 plugins/export_ui/services_ctools_export_ui.class.php \services_edit_form_endpoint_authentication_submit()
File
- plugins/
export_ui/ services_ctools_export_ui.class.php, line 129 - Export-ui handler for the Services module.
Code
function services_edit_form_endpoint_authentication_submit($form, $form_state) {
$endpoint = $form_state['values']['endpoint_object'];
foreach (array_keys($endpoint->authentication) as $module) {
if (isset($form_state['values'][$module])) {
$endpoint->authentication[$module] = $form_state['values'][$module];
}
}
drupal_set_message(t('Your authentication options have been saved.'));
services_endpoint_save($endpoint);
}