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

ezra-g’s picture

Issue tags: +Commons 7.x-3.1 radar

Adding to our Commons 7.x-3.1 radar.

japerry’s picture

Assigned: Unassigned » japerry
japerry’s picture

Status: Active » Fixed

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

Anonymous’s picture

Issue summary: View changes

changed ... to ...