function services_edit_endpoint_resources in Services 6.3
Same name and namespace in other branches
- 7.3 plugins/export_ui/services_ctools_export_ui.class.php \services_edit_endpoint_resources()
services_edit_endpoint_resources function.
Edit Resources endpoint form
Parameters
object $endpoint:
Return value
string The form to be displayed
File
- plugins/
export_ui/ services_ctools_export_ui.class.php, line 222 - Export-ui handler for the Services module.
Code
function services_edit_endpoint_resources($endpoint) {
if (!is_object($endpoint)) {
$endpoint = services_endpoint_load($endpoint);
}
if ($endpoint && !empty($endpoint->title)) {
drupal_set_title($endpoint->title);
}
return drupal_get_form('services_edit_form_endpoint_resources', $endpoint);
}