function metatag_get_instance in Metatag 7
Return instance of metatag.
9 calls to metatag_get_instance()
- metatag.search_api.inc in ./
metatag.search_api.inc - Contains MetatagSearchAlterCallback.
- metatag_context_reaction::execute in metatag_context/
metatag_context.context.inc - Output a list of active contexts.
- metatag_get_value in ./
metatag.module - Return the string value of a meta tag.
- metatag_metatags_form in ./
metatag.module - Build a FAPI array for editing meta tags.
- metatag_metatags_values in ./
metatag.module - Returns metatags values.
File
- ./
metatag.module, line 2239 - Primary hook implementations for Metatag.
Code
function metatag_get_instance($metatag, array $data = array()) {
$info = metatag_get_info('tags', $metatag);
if (!empty($info['class']) && class_exists($info['class'])) {
$class = $info['class'];
return new $class($info, $data);
}
}