summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--calendario.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/calendario.module b/calendario.module
index bfa61e7..c8e5665 100644
--- a/calendario.module
+++ b/calendario.module
@@ -73,7 +73,9 @@ function calendario_views_post_render(&$view, &$output, &$cache) {
* Entity uri callback.
*/
function calendario_taxonomy_term_uri($term) {
+ $type = ($term->vocabulary_machine_name == 'tags') ? 'tag' : $term->vocabulary_machine_name;
+
return array(
- 'path' => 'calendario/'. $term->vocabulary_machine_name .'/'. $term->name .'/mes',
+ 'path' => 'calendario/'. $type .'/'. $term->name .'/mes',
);
}