diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 98add0155e..cdf81f4228 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-06-14 Javier Lanz + + * godmode/agentes/module_manager_editor_prediction.php: Added enterprise + hook for synthetic modules + 2011-06-13 Sergio Martin * include/functions_graph.php diff --git a/pandora_console/godmode/agentes/module_manager_editor_prediction.php b/pandora_console/godmode/agentes/module_manager_editor_prediction.php index cb77977849..96eb1fcfaa 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_prediction.php +++ b/pandora_console/godmode/agentes/module_manager_editor_prediction.php @@ -96,6 +96,25 @@ $table_simple->colspan['prediction_module'][1] = 3; push_table_simple ($data, 'prediction_module'); +// Synthetic modules are an Enterprise feature. +$data = array(); +$synthetic_selector = enterprise_hook ('get_synthetic_module_selector', array($is_service)); +if ($synthetic_selector !== ENTERPRISE_NOT_HOOK) { + $data[0] = __('Synthetic module'); + $data[1] = $synthetic_selector; + $table_simple->colspan['synthetic_selector'][1] = 3; + push_table_simple ($data, 'synthetic_selector'); +} + +$data = array(); +$synthetic_module_form = enterprise_hook ('get_synthetic_module_form'); +if ($synthetic_module_form !== ENTERPRISE_NOT_HOOK) { + $data[0] = ''; + $data[1] = $synthetic_module_form; + $table_simple->colspan['synthetic_module_form'][1] = 3; + push_table_simple ($data, 'synthetic_module_form'); +} + /* Removed common useless parameter */ unset ($table_advanced->data[3]); unset ($table_advanced->data[2][2]);