How to Change Drupal submit Text

Every now and then you may have to face situations where you need to alter the default drupal submit text , for example change create new account to signup, etc. Please find a very simple ways to do it.
function yourmodule_form_alter(&$form, $form_state, $form_id)  {
    
    switch ($form_id)  {
        case 'user_register_form':
            $form['actions']['submit']['#value'] = 'Signup'; 
            break;

     }


  }
Hope it helps
Category: