I'm writing a module that interfaces with Google Base. It needs to insert a link to the page that the item is on, however, this item has no path until pathauto runs. How can I either make sure pathauto runs its hooks before my module does, or get the path that will result from pathauto?.
The solution needs to be generic enough to work with any kind of node having different pathauto settings as outlined by the admin.
The problem is that the [path] value for the $node variable looks like the following when I call the function: [path] => [pathauto_perform_alias] => 1
The value for the node path comes out empty, and the value given to Google Base is simply the base-url for the website.
Is there a way to change the weight at which hook_nodeapi functions run, so that they'll run later instead of sooner?
i ran into a similar problem with taxonomy not having attached the terms to the node that I was trying to access. I got around that by using taxonomy_node_get_terms()
Thanks in advance.