function hook_metatag_presave in Metatag 7
Allow other modules to alter the meta tags prior to saving.
Parameters
array $metatags: The meta tags being saved for this entity.
string $entity_type: The type of entity being saved.
int $entity_id: The ID of the entity being saved.
int $revision_id: The revision ID of the entity being saved.
string $langcode: The language code for the entity being saved.
1 invocation of hook_metatag_presave()
- metatag_metatags_save in ./
metatag.module - Save an entity's tags.
File
- ./
metatag.api.php, line 342 - API documentation for the Metatag module.
Code
function hook_metatag_presave(array &$metatags, $entity_type, $entity_id, $revision_id, $langcode) {
}