materio_taxonomy.module 830 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Implements hook_permission().
  4. */
  5. function materio_taxonomy_permission() {
  6. $perms = array();
  7. // foreach (taxonomy_get_vocabularies() as $voc) {
  8. // dsm($voc, '$voc');
  9. // // $perms['access taxonomy term page'] => array(
  10. // // 'title' => t(''),
  11. // // 'description' => t(''),
  12. // // );
  13. // }
  14. $perms['access taxonomy terms page'] = array(
  15. 'title' => t('access taxonomy terms page'),
  16. 'description' => t(''),
  17. );
  18. return $perms;
  19. }
  20. function materio_taxonomy_menu_alter(&$items) {
  21. $items['taxonomy/term/%taxonomy_term']['access arguments'] = array('access taxonomy terms page');
  22. $items['taxonomy/term/%taxonomy_term/view']['access arguments'] = array('access taxonomy terms page');
  23. $items['taxonomy/term/%taxonomy_term/feed']['access arguments'] = array('access taxonomy terms page');
  24. }