function prod_check_enable_nagios in Production check & Production monitor 6
Same name and namespace in other branches
- 7 includes/prod_check.admin.inc \prod_check_enable_nagios()
Callback to add nagios settings.
7 string references to 'prod_check_enable_nagios'
- prod_check_menu in ./
prod_check.module - Implementation of hook_menu()
- prod_check_menu_alter in ./
prod_check.module - Implementation of hook_menu_alter()
- prod_check_nagios in ./
prod_check.module - Implementation of hook_nagios()
- prod_check_nagios_info in ./
prod_check.module - Implementation of hook_nagios_info()
- prod_check_requirements in ./
prod_check.install - Implementation of hook_requirements().
File
- includes/
prod_check.admin.inc, line 362
Code
function prod_check_enable_nagios() {
$form = _prod_check_ahah_helper();
$nagios = $form['prod_check_nagios']['nagios'];
// Remove the wrapper so we don't double it up.
unset($nagios['#prefix'], $nagios['#suffix']);
$output = drupal_render($nagios);
// Final rendering callback.
print drupal_json(array(
'status' => TRUE,
'data' => $output,
));
exit;
}