function services_client_plugin_config in Services Client 7
Plugin configuration form
2 string references to 'services_client_plugin_config'
- services_client_ui::condition_page in plugins/
export_ui/ services_client_ui.class.php - Page callback for the server page.
- services_client_ui::mapping_page in plugins/
export_ui/ services_client_ui.class.php - Page callback for the auth page.
File
- plugins/
export_ui/ services_client_ui.class.php, line 127
Code
function services_client_plugin_config($form, &$form_state, $type, $item) {
// Get plugin name and configuration
$name = $item->config[$type]['plugin'];
$config = $item->config[$type]['config'];
// Get new plugin
$plugin = services_client_get_plugin($type, $name, $item, $config);
// Run config form function
$plugin
->configForm($form, $form_state);
$form_state += array(
'type' => $type,
'item' => $item,
'plugin' => $plugin,
'config' => $config,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save'),
);
return $form;
}