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.
in my themes template.php file:
function phptemplate_settings(){
$settings = variable_get( 'theme_esjing_settings', array());
$form['foo'] = array('#type'=>'textfield','#default_value'=>$settings['foo']);
return $form;
}
the function phptemplate_settings is neved called on admin/themes/settings/esjing .
or am i wrong?
Comment | File | Size | Author |
---|---|---|---|
patch_17.txt | 618 bytes | oscnet |
Comments
Comment #1
oscnet CreditAttribution: oscnet commentedpatch worked for me.
Comment #2
oscnet CreditAttribution: oscnet commentedhttp://drupal.org/node/49703
Comment #3
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedapplied
Comment #4
Heine CreditAttribution: Heine commentedSorry to reopen,
The patch doesn't work when you're not editing settings of the active theme; unfortunately a new issue was opened http://drupal.org/node/57676.
I also think it should be a feature request, not a bug-report; it seems that 'engine'-themes only support engine-specific settings, not theme specific settings.
Comment #5
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedreverted. Please continue discussion in http://drupal.org/node/57676
Comment #6
(not verified) CreditAttribution: commented