You are here

function prod_check_enable_xmlrpc in Production check & Production monitor 6

Same name and namespace in other branches
  1. 7 includes/prod_check.admin.inc \prod_check_enable_xmlrpc()

Callback to add xmlrpc settings.

4 string references to 'prod_check_enable_xmlrpc'
prod_check_menu in ./prod_check.module
Implementation of hook_menu()
prod_check_settings_form in includes/prod_check.admin.inc
Build settings form.
prod_check_settings_form_submit in includes/prod_check.admin.inc
Submit for settings form.
prod_check_xmlrpc in ./prod_check.module
Implementation of hook_xmlrpc http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hoo...

File

includes/prod_check.admin.inc, line 345

Code

function prod_check_enable_xmlrpc() {
  $form = _prod_check_ahah_helper();
  $xmlrpc = $form['prod_check_xmlrpc']['xmlrpc'];

  // Remove the wrapper so we don't double it up.
  unset($xmlrpc['#prefix'], $xmlrpc['#suffix']);
  $output = drupal_render($xmlrpc);

  // Final rendering callback.
  print drupal_json(array(
    'status' => TRUE,
    'data' => $output,
  ));
  exit;
}