Closed (fixed)
Project:
Hide submit button
Version:
5.x-1.0-beta1
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
6 Jun 2009 at 15:55 UTC
Updated:
12 Sep 2009 at 11:40 UTC
I raised this issue as a seperate one, taken from here
This is easily solved by changing in hide_submit_admin.inc
instead:
$form['fieldset_message']['hide_submit_message'] = array(
'#type' => 'textarea',
'#title' => t('Default Message'),
'#rows' => 2,
'#default_value' => variable_get('hide_submit_message', HIDE_SUBMIT_DEFAULT_MESSAGE ),
);
Just hard-code the default message,
$form['fieldset_message']['hide_submit_message'] = array(
'#type' => 'textarea',
'#title' => t('Default Message'),
'#rows' => 2,
'#default_value' => variable_get('hide_submit_message', t('Please wait...')),
);
Usually I don't like hard-coding constants, but in this case it is bearable
I can see that this method is common in many drupal modules, including core modules
I'll commit this soon
Comments
Comment #1
optalgin commentedComment #2
optalgin commented