Any plans to bring this wonderful module up to speed with Drupal 7?

Comments

jarchowk’s picture

Not a pretty solution, but to get this working in D7 replace the node_destination_form_alter function with these 2 functions:

function node_destination_form_alter(&$form, $form_state, $form_id) {
  
  if (isset($form['#node_type']) && 'node_type_form' == $form_id) {
    node_destination_node_settings_form($form);
  }
  elseif (isset($form['#node']) && isset($form['#method']) && $form['#node']->type .'_node_form' == $form_id) {
    $option = node_destination_get_setting($form['#node']->type);
	if ($option) {
		$form['actions']['submit']['#submit'][] = 'node_destination_do_redirect';			
	}
  }
}

function node_destination_do_redirect($form, &$form_state){
	$option = node_destination_get_setting($form['#node']->type);
  	$form_state['redirect'] = $option;
}

And the uninstall node type function needs to be replace with: node_type_get_types.

Also update your .info file.

Also consider using the Rules module.