materio-base-legacy/materio_taxonomy.module
Bachir Soussi Chiadmi 8672e5eb9f changed premissions
2013-09-06 16:59:50 +02:00

29 lines
830 B
Plaintext
Executable File

<?php
/**
* Implements hook_permission().
*/
function materio_taxonomy_permission() {
$perms = array();
// foreach (taxonomy_get_vocabularies() as $voc) {
// dsm($voc, '$voc');
// // $perms['access taxonomy term page'] => array(
// // 'title' => t(''),
// // 'description' => t(''),
// // );
// }
$perms['access taxonomy terms page'] = array(
'title' => t('access taxonomy terms page'),
'description' => t(''),
);
return $perms;
}
function materio_taxonomy_menu_alter(&$items) {
$items['taxonomy/term/%taxonomy_term']['access arguments'] = array('access taxonomy terms page');
$items['taxonomy/term/%taxonomy_term/view']['access arguments'] = array('access taxonomy terms page');
$items['taxonomy/term/%taxonomy_term/feed']['access arguments'] = array('access taxonomy terms page');
}