It is totally possible but it would require you editing a Drupal core php file, which is not recommended for non-advanced users.
Also to mention, if you ever upgraded core, eg (Drupal 7.0 -> Drupal 7.2) then you would have to reapply the changes, and they may be in a different spot.
this code changes the "save" button to "submit" and suppresses the "preview" button for these two content types -- apt_rental_listing & res_mgr_listing.
Edit: this is a drupal 6.x solution that I have used before. It may not work with D7. But maybe it will give some direction regardless.
I've tried the custom module. No dice here. In looking at other posts online I see some differences.
Your suggestion... function yourmodule_form_alter(&$form, $form_state, $form_id) {
Other suggestion... function yourmodule_form_alter(&$form, &$form_state, $form_id) {
And as in the MailChimp Module I'm trying to override instead of just hacking their module.. function yourmodule_form_alter($form, &$form_state, $form_id) {
When this one didn't work... $form['actions']['submit']['#value'] = t('Subscribe');
String overrides is not a solution because it will change everything from "Save" to "Subscribe" which would not make sense for node publishing where "Submit" is preferred.
Josh Utley, President & CEO
Intrepid Network Inc. | Multimedia Services & Business Solutions
"Our mission is to provide a more personable multimedia service along with the highest quality business solutions."
Comments
It is totally possible but it
It is totally possible but it would require you editing a Drupal core php file, which is not recommended for non-advanced users.
Also to mention, if you ever upgraded core, eg (Drupal 7.0 -> Drupal 7.2) then you would have to reapply the changes, and they may be in a different spot.
- Craig Vanderlinden @cvanderlinden
Do not hack core
http://drupal.org/project/stringoverrides
Make a module!
buttonalter.info
buttonalter.module
this code changes the "save" button to "submit" and suppresses the "preview" button for these two content types -- apt_rental_listing & res_mgr_listing.
Edit: this is a drupal 6.x solution that I have used before. It may not work with D7. But maybe it will give some direction regardless.
I tried Lrr's module but it
I tried Lrr's module and it worked for me. Thanks!
In Drupal 7
In Drupal 7 its:
$form['actions']['submit']['#value'] = t('Submit');
thanks pwhite - that worked!
thanks pwhite - that worked!
Worked for me. Thanks!!
Worked for me. Thanks!!
Unable to resolve for D7
I've tried the custom module. No dice here. In looking at other posts online I see some differences.
Your suggestion...
function yourmodule_form_alter(&$form, $form_state, $form_id) {Other suggestion...
function yourmodule_form_alter(&$form, &$form_state, $form_id) {And as in the MailChimp Module I'm trying to override instead of just hacking their module..
function yourmodule_form_alter($form, &$form_state, $form_id) {And, I've also tried this variation...
When this one didn't work...
$form['actions']['submit']['#value'] = t('Subscribe');String overrides is not a solution because it will change everything from "Save" to "Subscribe" which would not make sense for node publishing where "Submit" is preferred.
Josh Utley, President & CEO
Intrepid Network Inc. | Multimedia Services & Business Solutions
"Our mission is to provide a more personable multimedia service along with the highest quality business solutions."