diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 82b8f42683..5521d25660 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2014-04-29 Vanessa Gil + + * include/ajax/module.php: Add function to get + id tag. + 2014-04-29 Junichi Satoh * include/functions_api.php: Added new API functions to manage diff --git a/pandora_console/include/ajax/module.php b/pandora_console/include/ajax/module.php index 20c40197e8..b83d2e9388 100644 --- a/pandora_console/include/ajax/module.php +++ b/pandora_console/include/ajax/module.php @@ -406,4 +406,17 @@ if ($change_module_relation_updates) { return; } +$get_id_tag = (bool) get_parameter('get_id_tag', 0); +if ($get_id_tag) { + $tag_name = get_parameter('tag_name'); + + if ($tag_name) { + $tag_id = db_get_value('id_tag', 'ttag', 'name', $tag_name); + } else { + $tag_id = 0; + } + + echo $tag_id; + return; +} ?> \ No newline at end of file