drupal6
Single Group Login Redirect
grayside — Wed, 04/28/2010 - 13:39
Community.OA had a request for functionality that would redirect a user with a single group membership to that group’s homepage.
I packaged that functionality up as a Feature, so you can use it too. The oa_ prefix refers to the support for spaces_og/purl to generate a group URL.
Freelinking 1.9 Release Sighted
grayside — Sat, 03/27/2010 - 22:31
Freelinking 1.x was previously announced as feature-frozen, and the next thing to unsupported. Looking at the long development cycle for Freelinking 3 reaching stability, the issue queue was dusted off.
Freelinking 1.9 will fix a number of bugs in 1.8, and smooth out the transition to FL3. Please go on over to the Freelinking homepage and download the dev version to try it out.
Freelinking 1.9 will be released this week.
Overriding Prepopulate: Do Not Use hook_form_FORM_ID_alter
grayside — Fri, 02/12/2010 - 11:31
The Prepopulate module works some great magic to preload forms from URL variables. But suppose you need some extra magic to modify the titles it puts in place?
You can always use hook_form_alter (and here is one of countless little tutorials on that).
If you already know about that, you might be someone that enjoys the use of hook_form_FORM_ID_alter(). If you do, you cannot use it to override Prepopulate-set fields. It turns out that regardless of module weight, hook_form_FORM_ID_alter is called before hook_form_alter for any given form, meaning that the more specific function will always set the value, then Prepopulate will come along and reset it to your URL value.
There is a nice issue (#300481) that details this problem, and hopefully will find itself fixed in Drupal 8.