added materio_taxonomy for term pages perms

Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
bachy
2013-05-31 18:34:47 +02:00
parent 2f95c828e6
commit 70b4f2279f
2 changed files with 58 additions and 0 deletions

29
materio_taxonomy.module Normal file
View File

@@ -0,0 +1,29 @@
<?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');
}