function monitoring_config_code in Monitoring 7
Get config code with dynamic variables.
Parameters
string $module: Module name.
string $type: Config type.
array $variables: Dynamic values.
Return value
string Config code.
5 calls to monitoring_config_code()
- monitoring_icinga_config_active_page in modules/
monitoring_icinga/ monitoring_icinga.admin.inc - Icinga config active page callback.
- monitoring_icinga_config_passive_page in modules/
monitoring_icinga/ monitoring_icinga.admin.inc - Icinga config passive page callback.
- monitoring_icinga_config_passive_with_freshness_page in modules/
monitoring_icinga/ monitoring_icinga.admin.inc - Icinga config active page callback.
- monitoring_icinga_objects_definitions_output in modules/
monitoring_icinga/ monitoring_icinga.admin.inc - Creates the object definitions output part.
- monitoring_munin_config_page in modules/
monitoring_munin/ monitoring_munin.admin.inc - Configuration page callback.
File
- ./
monitoring.module, line 568 - Monitoring bootstrap file.
Code
function monitoring_config_code($module, $type, $variables = array()) {
$code = file_get_contents(drupal_get_path('module', $module) . '/config_tpl/' . $type . '.txt');
return format_string($code, $variables);
}