2014-04-29 Vanessa Gil <vanessa.gil@artica.es>

* include/ajax/module.php: Add function to get
	id tag.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9831 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
vgilc 2014-04-29 07:46:49 +00:00
parent bd7a3c7e60
commit 864151ed5a
2 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2014-04-29 Vanessa Gil <vanessa.gil@artica.es>
* include/ajax/module.php: Add function to get
id tag.
2014-04-29 Junichi Satoh <junichi@rworks.jp>
* include/functions_api.php: Added new API functions to manage

View File

@ -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;
}
?>