From 70b4f2279f832ae03ed6709355e83c26d39cd838 Mon Sep 17 00:00:00 2001 From: bachy Date: Fri, 31 May 2013 18:34:47 +0200 Subject: [PATCH] added materio_taxonomy for term pages perms Signed-off-by: bachy --- materio_taxonomy.info | 29 +++++++++++++++++++++++++++++ materio_taxonomy.module | 29 +++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 materio_taxonomy.info create mode 100644 materio_taxonomy.module diff --git a/materio_taxonomy.info b/materio_taxonomy.info new file mode 100644 index 00000000..74eb8dcf --- /dev/null +++ b/materio_taxonomy.info @@ -0,0 +1,29 @@ +name = Materio Taxonomy +description = "The description of this module" + +; Core version (required) +core = 7.x + +; Package name (see http://drupal.org/node/542202 for a list of names) +package = Materio + +; PHP version requirement (optional) +; php = 5.2 + +; Loadable code files + files[] = materio_taxonomy.module +; files[] = materio_search_api_ajax.admin.inc +; files[] = materio_search_api_ajax.class.inc + +; Module dependencies +dependencies[] = taxonomy +; dependencies[] = theirmodule (1.2) +; dependencies[] = anothermodule (>=2.4) +; dependencies[] = views (3.x) + +; Configuration page +; configure = admin/config/materio_search_api_ajax + + +; For further information about configuration options, see +; - http://drupal.org/node/542202 diff --git a/materio_taxonomy.module b/materio_taxonomy.module new file mode 100644 index 00000000..07a7a404 --- /dev/null +++ b/materio_taxonomy.module @@ -0,0 +1,29 @@ + 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'); +} \ No newline at end of file