Closed (fixed)
Project:
Drupal Commons
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
3 Mar 2013 at 02:38 UTC
Updated:
4 Jan 2014 at 02:58 UTC
Jump to comment: Most recent
Nightly build from today...
When on the General Settings tab, the form_state['build_info']['args'] array is empty, has no [0] element, so throws the error. My quick-and-dirty was to just put an @ in front of that section.
/profiles/commons/modules/contrib/commons_misc/commons_misc.module line 35...
/**
* Implements hook_form_FORM_ID_alter().
*/
function commons_misc_form_system_theme_settings_alter(&$form, &$form_state, $form_id) {
$themes_list = list_themes(TRUE);
if (isset($themes_list['commons_origins'])
&& $themes_list['commons_origins']->status == 1
&& @$form_state['build_info']['args'][0] == 'commons_origins') {
// Add the color palette selection form to the apperance settings form.
require_once(drupal_get_path('theme', 'commons_origins') . '/commons_origins.palettes.inc');
commons_origins_palettes_form($form);
}
}
Comments
Comment #1
ezra-g commentedAdding to our Commons 7.x-3.1 radar.
Comment #2
japerryComment #3
japerryFixed! thanks for the find!
http://drupalcode.org/project/commons_misc.git/commit/35f176e
Comment #4.0
(not verified) commentedchanged
...to...