function textimage_metatag_token_types_alter in Textimage 7.3
Implements hook_metatag_token_types_alter().
Integration of Textimage tokens with the Metatag module.
File
- ./
textimage.module, line 312 - Textimage - Provides text to image manipulations.
Code
function textimage_metatag_token_types_alter(&$options) {
// Add Textimage tokens to the token types managed by Metatag,
// for the node context.
if ($options['context'] == 'node') {
if (!isset($options['token types'])) {
$options['token types'] = array();
}
if (!in_array('textimage', $options['token types'])) {
$options['token types'][] = 'textimage';
}
}
}