April 2010
Prepopulate Group Audience
grayside — Thu, 04/01/2010 - 09:28
This trick does not use the very fine Prepopulate module at all.
By appending ?gids[]=<group nid> to your node/add URL, you can specify the group audience. By throwing in a comma-delimited list of nids, you can specify multiple audiences. It’s just that simple.
Changing Node Group Audience
grayside — Mon, 04/12/2010 - 10:33
In OpenAtrium, it’s not easy to change the group affiliation of a node once it has been created. OA locks down the interface to set group audience specifically to make the interface easier to understand.
I have just posted a quick feature that demonstrates how to grant administrators the ability to shuffle nodes around between groups, it can be found in the issue queue at community.OA.
Feeds Usermapper
grayside — Mon, 04/12/2010 - 13:14
If you are using Feeds to migrate site content, one of the stumbling blocks will be preserving content ownership.
This code is taken from a hypothetical feeds_usermapper module that provides the option to sync up node ownership on the basis of identical usernames. (Pulled from User Inheritance Issue on D.O)
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.
Drush and Features Servers
grayside — Fri, 04/30/2010 - 23:14
Feature Servers have great potential to help structure the use of code sourced outside the formal ecosphere around Drupal.Org this has it’s pro’s and con’s, but I already see their usefulness in providing a little more structure to issue-queue code exchanges and organization-internal modules. So let’s bring Drush into this and boost the ease of use of that usefulness another step up.