Alter the node add form in Drupal 7

If you want to change the Save button text to Submit in Drupal 7 add the following to your template.php file.

Simply replace YOURTHEME with the name of your theme and CONTENTTYPE to the machine name of your content type.

function YOURTHEME_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'CONTENTTYPE_node_form') {
$form['actions']['submit']['#value'] = t('Submit');

Tags: , , Posted by

Leave a Reply