Fix for form alter to change name of submit button

  1. function my_module_form_alter(&$form, &$form_state, $form_id ){
  2.  
  3.         if ($form['#id']=='node-form' && $form['type']['#value']=='business' && $form['uid']['#value']=='0'){
  4.        
  5.                 $form['buttons']['submit']['#value'] = 'Next >';
  6.                 unset($form['buttons']['preview']);
  7.  
  8. //echo '<pre>';
  9. //print_r($form);
  10. //echo '</pre>';
  11.  
  12.         }
  13.  
  14.  
  15. }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.