Closed (fixed)
Project:
OG Vocabulary
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 Jan 2009 at 05:02 UTC
Updated:
22 Jan 2009 at 19:10 UTC
Jump to comment: Most recent file
I just assumed that og_vocab never had the ability to hook into pathauto and update taxonomy aliases--but it seem rather that the og_vocab.pathauto.inc file is rather outdated. The new pathauto uses the token module, so the hook_pathauto_taxonomy does not seem to be working.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | og_vocab.pathauto.inc_.txt | 736 bytes | amitaibu |
| #6 | og_vocab.pathauto.inc_.txt | 774 bytes | joewang |
| #5 | og_vocab.pathauto.inc_.txt | 786 bytes | joewang |
| #3 | og_vocab.pathauto.inc_.txt | 811 bytes | joewang |
Comments
Comment #1
amitaibuYes, I've only moved the pathauto to an include file. Patches are welcome.
Comment #2
joewang commentedI don't really have much time to work on a large patch, but here's what I found in the issue queue of the category module:
http://drupal.org/node/254231
Maybe it will help with og_vocab here? This issue isn't very urgent, but would be nice to solve.
Comment #3
joewang commentedYou know what, I wrote the patch all by myself ;)
Comment #4
amitaibuGreat, thanks.
There are tabs on the patch - please re-roll following the coding standards - http://drupal.org/coding-standards
Comment #5
joewang commentedHow's this? code-check.pl didn't say anything when run.
Comment #6
joewang commentedWhoops-here we go.
Comment #7
amitaibuSome fine tuning:
1) Please roll a patch using diff - http://drupal.org/patch/create
2) I actually still didn't commit, because I'm missing some comments to explain the code.
3)
$category = $object;why do we need $category, can't you just use$result = db_query($sql, $object->vid);Thanks :)
Comment #8
joewang commented1. I know how to use diff--I just don't see why you'd need a patch since the new include is essentially a different file.
2. The old include didn't have any comments either. I think the code is pretty self explanatory.
3. I followed the convention used in the pathauto module. They had
$node = $object;and....$node....Anyways, some of these changes you request are rather minor--couldn't you just do them before committing? I'm using the new include on my site with no problems, so I really don't really feel obligated to fine tune what I have.
Comment #9
amitaibuAbout the diff no problem.
As I'm not using pathauto, I submit the patch for your review. btw, in comments I meant things like 'implementation of ...' - which result with a nicer code :)
Comment #10
amitaibuhmm ,actually this inc should be called og_vocab.token.inc - as it's mostly a token implementation. I'll work on it.
Comment #11
amitaibuhttp://drupal.org/cvs?commit=163447