metatag_test.module 461 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * Implements hook_ctools_plugin_api().
  4. */
  5. function metatag_test_ctools_plugin_api($owner, $api) {
  6. if ($owner == 'metatag' && $api == 'metatag') {
  7. return array('version' => 1);
  8. }
  9. }
  10. /**
  11. * Implements hook_entity_info_alter().
  12. */
  13. function metatag_test_entity_info_alter(&$info) {
  14. if (variable_get('metatag_test_entity_info_disable')) {
  15. $info['node']['bundles']['page']['metatags'] = FALSE;
  16. $info['user']['metatags'] = FALSE;
  17. }
  18. }