mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Add visual console macros - #1413
This commit is contained in:
parent
c76ac64476
commit
cffbfd3fb3
@ -3275,7 +3275,7 @@ function visual_map_print_visual_map ($id_layout, $show_links = true,
|
||||
'proportion_width' => $proportion_width);
|
||||
}
|
||||
|
||||
$layout_data['label'] = visual_map_macro($layout_data['label']);
|
||||
$layout_data['label'] = visual_map_macro($layout_data['label'],$layout_data["id_agente_modulo"]);
|
||||
|
||||
switch ($layout_data['type']) {
|
||||
case LINE_ITEM:
|
||||
@ -3661,9 +3661,14 @@ function visual_map_type_in_js($type) {
|
||||
}
|
||||
}
|
||||
|
||||
function visual_map_macro($label){
|
||||
function visual_map_macro($label,$module){
|
||||
$label = str_replace('_date_',strftime("%x"),$label);
|
||||
$label = str_replace('_time_',strftime("%T"),$label);
|
||||
$label = str_replace('_agent_',agents_get_alias(modules_get_agentmodule_agent($module)),$label);
|
||||
$label = str_replace('_module_',modules_get_agentmodule_name($module),$label);
|
||||
$label = str_replace('_agentdescription_',agents_get_description(modules_get_agentmodule_agent($module)),$label);
|
||||
$label = str_replace('_address_',agents_get_address(modules_get_agentmodule_agent($module)),$label);
|
||||
$label = str_replace('_moduledescription_',modules_get_agentmodule_descripcion($module),$label);
|
||||
return $label;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user