The Origins implementation of hook_form_alter() isn't called when the administrative theme is active, which is the case on this form.

Comments

jpontani’s picture

Assigned: Unassigned » jpontani
jpontani’s picture

Status: Active » Needs review
StatusFileSize
new603 bytes
new808 bytes

Attached two patches for review. I moved the palette form handler to commons_misc rather than commons_origins, as commons_misc is required for Commons and will always have the form alter called regardless of which theme is selected. In the new form alter, I check to make sure that commons_origins exists in the theme registry and that it is enabled, as you can't change settings for disabled themes by default in Drupal.

jpontani’s picture

This is the right patch for commons_misc, it checks to make sure that we're on the settings form for commons origins before adding the palette form.

ezra-g’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.

jpontani’s picture

Status: Fixed » Closed (fixed)

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

heyyo’s picture

Version: » 7.x-3.2
Status: Closed (fixed) » Active

if it's a subtheme of commons origin, we don't see the palette form, because the patch targets only the commons origin theme.

ezra-g’s picture

Status: Active » Closed (fixed)

Thanks, @heyyo. Please file a new issue since this is a different problem.