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:
parent
bd7a3c7e60
commit
864151ed5a
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
?>
|
Loading…
Reference in New Issue