Identify a label without title

Identify a label without title

by Helson C -
Number of replies: 0

Hello,

We are creating a plugin that check activity title, but the label don't have title and we can't check it.

But I'm trying to add tags to label and get it by code.


There is a way to get tags related to an activity?


example :

I create a label and insert some tags to it.

then

$tags = tag_list(core_tag_tag::get_item_tags('mod_label', 'label', $page->id), null, 'label-tags');

foreach($tags as $tag){

if($tag == "sometag")

   echo 'Tag found';

}

}


Thanks in advance.

Average of ratings: Useful (1)