Details
-
Type: Improvement
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: None
-
Fix Version/s: 1.5
-
Component/s: None
-
Labels:None
Description
Currently there is no way to "get" a tag object using the APIs - and therefore you can not actually assign a tag to an entity via crm_create_entity_tag().
1. implement crm_get_tag(). This api takes $params array which can consist of the 'name' and/or 'id' of the tag to be retrieved. It returns the corresponding tag object.
2. Implement api test file for this function.
3. Document the new API here: http://wiki.civicrm.org/confluence/display/CRM/Tagging+APIs (and include a code sample in the doc, using the
wiki tags whic demonstrates getting the tag and then tagging a contact).