To get this module to work on a fresh install, the "sites group" specified at Administer › Organic groups › Organic groups sites hub *must* be saved once. This would be step 1 a) in the INSTALLATION AND SETUP section of the readme. Failure to do so won't let show up the prefix selection when creating a new site via "create content", and editing a site generated by the install script won't save most of the fields (which is in fact more critical than the first issue).

A possible alternative could be setting the og_sites_hub_og variable to a reasonable default value (ie. og_site).

The problem currently is, that the select box at Administer › Organic groups › Organic groups sites hub *by default* shows a reasonable value (ie. Site), so I saw no reason in hitting "save". Unfortunately the form_alter() routines require the variable to be correctly set.

Nice module, btw :)
--
Stefan Kudwien
http://www.unleashedmind.com

Comments

nedjo’s picture

StatusFileSize
new749 bytes

Good catch.

What I think we need to do is register the type after it's created in the .install file. Patch attached.

nedjo’s picture

Status: Active » Needs review
StatusFileSize
new859 bytes

This looks better. Save before converting node type into object.

nedjo’s picture

StatusFileSize
new746 bytes

Remove duplicate line.

smk-ka’s picture

Status: Needs review » Reviewed & tested by the community

#3 looks good. As long as nobody's not tampering with the variable value (ie. deleting it), this should fix it.

nedjo’s picture

Status: Reviewed & tested by the community » Fixed

Applied.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.