metatag_context_tests.module 721 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * @file
  4. * Primary hook implementations for Metatag:Context tests.
  5. */
  6. /**
  7. * Implements hook_ctools_plugin_api().
  8. */
  9. function metatag_context_tests_ctools_plugin_api() {
  10. list($module, $api) = func_get_args();
  11. if ($module == "context" && $api == "context") {
  12. return array("version" => "3");
  13. }
  14. }
  15. /**
  16. * Implements hook_menu().
  17. */
  18. function metatag_context_tests_menu() {
  19. $items['metatag-context-test'] = array(
  20. 'title' => t('Metatag:Context test page'),
  21. 'page callback' => 'metatag_context_tests_test_page',
  22. 'access callback' => TRUE,
  23. );
  24. return $items;
  25. }
  26. /**
  27. * Menu callback for displaying the test page.
  28. */
  29. function metatag_context_tests_test_page() {
  30. return t('Hello');
  31. }