Why am I getting a "skipping broken view error" ?
        Posted  
        
            by user363036
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user363036
        
        
        
        Published on 2010-06-10T20:48:13Z
        Indexed on 
            2010/06/10
            20:53 UTC
        
        
        Read the original article
        Hit count: 275
        
This is Drupal 6.x and am having a nightmare of a time to modify a simple drupal form. This is a module file.
 
function modulename_menu() {
$items = array();
$items['school/registration'] = array(
      'title' => 'Registration Form',
      'page callback'    =>'drupal_get_form',
      'type' => MENU_CALLBACK
    );
return $items;
}//end of the function
function modulename_school_form_alter(&$form, $form_state, $form_id)
{
//  dsm($form_id);
if ($form_id == 'user_registration_form')
   {
// modify the "#submit" form property by prepending another submit handler arra
$form['#submit'] = array_merge(
      array('_modulename_registration_submit' => array()),
      $form['#submit']
    );
}
}
 
        © Stack Overflow or respective owner