I am using the metatag module for defining several meta tags. As a default value, canonical tags use
Now I want to create a module that sets the value of the canonical tag to some other url.
$node['metatags']['und']['canonical']['value'] to another string doesn't seem to work. Unfortunately, I also can't use an entity_wrapper, since metatag doesn't define information for its custom fields, which is needed by entity_wrapper.
Is there something else I could do?