From f75db92cd180d576c7d38b8eefe3936fd6b93bce Mon Sep 17 00:00:00 2001 From: javilanz Date: Tue, 14 Jun 2011 07:43:41 +0000 Subject: [PATCH] 2011-06-14 Javier Lanz * godmode/agentes/module_manager_editor_prediction.php: Added enterprise hook for synthetic modules git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4441 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ .../module_manager_editor_prediction.php | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) 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]);