public function OpenGraphMeta::tags_are_enabled_for_content_type in Open Graph meta tags 6
Same name and namespace in other branches
- 7 opengraph_meta.common.inc \OpenGraphMeta::tags_are_enabled_for_content_type()
Get whether meta tags are enabled for the given content type.
Return value
TRUE if so; FALSE otherwise.
File
- ./
opengraph_meta.common.inc, line 185
Class
Code
public function tags_are_enabled_for_content_type($type) {
$content_types = $this->settings_obj
->get(OPENGRAPH_META_VAR_CONTENT_TYPES_ENABLED, array());
$content_types = array_filter($content_types);
// if no content types specifically set OR if this content type is set then tags are enabled
return empty($content_types) || !empty($content_types[$type]);
}