Download & Extend

Palette selection form not added to Origins appearance settings form

Project:Drupal Commons
Version:7.x-3.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:jpontani
Status:closed (fixed)

Issue Summary

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

Comments

#1

Assigned to:Anonymous» jpontani

#2

Status:active» needs review

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.

AttachmentSize
1925184.commons_misc.add_palette_selection_form.patch 808 bytes
1925184.commons_origins.remove_palette_selection_form.patch 603 bytes

#3

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.

AttachmentSize
1925184.commons_misc.add_palette_selection_form.patch 874 bytes

#4

Status:needs review» reviewed & tested by the community

Looks good to me.

#5

#6

Status:fixed» closed (fixed)

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

nobody click here