function yoast_seo_entity_type_disable in Real-time SEO for Drupal 7
Disable support for a specific entity type.
Parameters
string $entity_type: The entity's type.
string $bundle: The entity's bundle.
File
- ./
yoast_seo.module, line 982 - Primary hook implementations for Yoast SEO for Drupal module.
Code
function yoast_seo_entity_type_disable($entity_type, $bundle = NULL) {
// The bundle was defined.
if (isset($bundle)) {
variable_set('yoast_seo_enable_' . $entity_type . '__' . $bundle, FALSE);
}
else {
variable_set('yoast_seo_enable_' . $entity_type, FALSE);
}
// Clear the static cache so that the entity type / bundle will work.
drupal_static_reset('yoast_seo_entity_supports_yoast_seo');
}