You are here

function services_admin_browse_test_submit in Services 7

Same name and namespace in other branches
  1. 5 services_admin_browse.inc \services_admin_browse_test_submit()
  2. 6 services_admin_browse.inc \services_admin_browse_test_submit()
  3. 6.2 services_admin_browse.inc \services_admin_browse_test_submit()

File

./services_admin_browse.inc, line 155
@author Services Dev Team

Code

function services_admin_browse_test_submit($form, $form_state) {
  global $_services_admin_browse_test_submit_result;
  $method = services_method_get(arg(4));
  $args = services_admin_browse_test_unserialize_args($form_state['values']['arg'], $form_state['values']['format']);

  // Allow the authorization module to handle submitted values.
  services_auth_invoke('alter_browse_form_submit', $method, $args);
  $result = services_method_call($method['#method'], $args, TRUE);
  $_services_admin_browse_test_submit_result = '<pre>' . htmlspecialchars(print_r($result, TRUE)) . '</pre>';
}