function theme_monitoring_config_box in Monitoring 7
Monitoring config code box theme.
Parameters
array $variables: Theme variables.
Return value
string Formatted output.
5 theme calls to theme_monitoring_config_box()
- 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 536 - Monitoring bootstrap file.
Code
function theme_monitoring_config_box($variables) {
$output = '';
if (!empty($variables['title'])) {
$output .= '<h3>' . check_plain($variables['title']) . '</h3>';
}
if (!empty($variables['description'])) {
$output .= '<p>' . check_plain($variables['description']) . '</p>';
}
if (!empty($variables['code'])) {
$variables['code_height'] = !empty($variables['code_height']) ? $variables['code_height'] : '100';
$output .= '<pre style="border:1px solid silver;padding:4px;height:' . $variables['code_height'] . 'px;overflow:auto;">' . check_plain($variables['code']) . '</pre>';
}
return $output;
}