Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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) CreditAttribution: commentedchanged
...
to...