Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
- Added permissions.
- User can now edit her terms.
- You can assign\ remove a vocabualry from a group right inside the admin/taxonomy page.
- CRUD api, in preparation for Rules integration..
- Vocab overview is now a form, allowing easier form_alter().
- Breadcrumb and redirection is a little nicer.
- Clean-up comments, move functions to include files.
- TODO, and we'll be happy for some help on that is make the terms block dependent on Views.
Comment | File | Size | Author |
---|---|---|---|
#3 | og_vocab.tar_.gz | 13.11 KB | amitaibu |
#2 | og_vocab.tar_.gz | 13.07 KB | amitaibu |
#1 | og_vocab.tar_.gz | 12.79 KB | amitaibu |
og_vocab.tar_.gz | 12.72 KB | amitaibu |
Comments
Comment #1
amitaibuAnd a minor fix to a an un-handled redirect.
Comment #2
amitaibuAnd here's an automatic workflow using the Rules module:
1) Use the attached module
2) Patch OG, to allow creating a group node ('Add group settings' action). #338919: Rules action - Add group node settings to content
3) Patch rules to allow taxonomy vocab actions. 'Add a new vocabulary' when a new group is created. #350831: Add taxonomy vocab actions
4) Assign vocabulary to the new created group.
In other words, every created group automatically gets its own vocab.
Comment #3
amitaibuhmm, why can't i get it right on the first time ;)
Comment #4
moshe weitzman CreditAttribution: moshe weitzman commentedAfter a quick read of og_vocab.module:
if (arg(0) == 'node' && is_numeric(arg(1)) && arg(2) == 'og') {
. Can we avoid arg()? Same for$form['#redirect'] = 'node/'. arg(1) .'/og/vocab';
array_diff($form['content_types']['nodes']['#options'], $skip)
Implementation of hook_term().
. I think you mean hook_taxonomyI added Amitaibu as a committer. He is welcome to commit this after acting on this review.
Comment #5
amitaibuCommitted to 6.x-1.x-dev
http://drupal.org/cvs?commit=160722