开发者

Why am I getting a "skipping broken view error"?

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开发者_JAVA百科()), $form['#submit'] );

} }


For what it's worth a few months afterwards - I just had the same problem. Check out http://drupal.org/node/626834#comment-2393090

You probably have an install file with your custom module that doesn't contain all the necessary information.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜