I installed the page route module and it works great, but the only problem is that the submit/next/back buttons are always displayed on top.
I have this custom module installed, which I thought would ensure that the profile node form (content profile node) and the CCK group field specified (group_personal) would move up based on their weight, but it does not seem to work.
Can anyone help ? Am I using the right code to specify a group field ? Or is there a way I can specify the entire form ?
<?php
function pageroute_buttons(&$form, $form_state, $form_id) {
switch ($form_id) {
case 'profile_node_form':
if(arg(0) == 'registration'){
$form['group_personal']['#weight'] = -10;
}
}
}
?>