metatag_importer.module 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * @file
  4. * Primary hook implementations.
  5. */
  6. /**
  7. * Implements hook_menu().
  8. */
  9. function metatag_importer_menu() {
  10. $items['admin/config/search/metatags/importer'] = array(
  11. 'title' => 'Importer',
  12. 'description' => 'Migrate settings and data from various modules to the Metatag module.',
  13. 'page callback' => 'metatag_importer_admin_page',
  14. 'access arguments' => array('administer meta tags'),
  15. 'file' => 'metatag_importer.admin.inc',
  16. 'type' => MENU_LOCAL_TASK,
  17. );
  18. $items['admin/config/search/metatags/importer/nodewords'] = array(
  19. 'title' => 'Import from Nodewords',
  20. 'description' => 'Migrate settings and data from the Drupal 6 Nodewords module to the Drupal 7 Metatag module.',
  21. 'page callback' => 'drupal_get_form',
  22. 'page arguments' => array('metatag_importer_nodewords_form'),
  23. 'access arguments' => array('administer meta tags'),
  24. 'file' => 'metatag_importer.nodewords.inc',
  25. 'type' => MENU_LOCAL_ACTION,
  26. );
  27. $items['admin/config/search/metatags/importer/page-title'] = array(
  28. 'title' => 'Import from Page Title',
  29. 'description' => 'Migrate settings and data from the Drupal 6 Nodewords module to the Drupal 7 Metatag module.',
  30. 'page callback' => 'drupal_get_form',
  31. 'page arguments' => array('metatag_importer_page_title_form'),
  32. 'access arguments' => array('administer meta tags'),
  33. 'file' => 'metatag_importer.page_title.inc',
  34. 'type' => MENU_LOCAL_ACTION,
  35. );
  36. return $items;
  37. }