diff -N -u ../filter_default/filter_default.info ./filter_default.info --- ../filter_default/filter_default.info 1969-12-31 21:00:00.000000000 -0300 +++ ./filter_default.info 2007-01-17 17:50:34.000000000 -0200 @@ -0,0 +1,6 @@ +; $Id: $ +description = "Allows each role to have a default input format." +name = "Filter Default" +version = "5.x-0.1-dev" +project = "filter_default" +package = "Filters" diff -N -u ../filter_default/filter_default.module ./filter_default.module --- ../filter_default/filter_default.module 2006-12-23 14:37:29.000000000 -0200 +++ ./filter_default.module 2007-02-02 13:58:49.000000000 -0200 @@ -1,20 +1,14 @@ 'admin/filters/default', + ('path' => 'admin/settings/filters/default', 'title' => t('defaults'), - 'callback' => 'filter_default_admin_defaults_form', + 'callback' => 'drupal_get_form', + 'callback arguments' => 'filter_default_admin_defaults_form', 'type' => MENU_LOCAL_TASK, 'weight' => 0.5, 'access' => user_access('administer filters'), @@ -65,7 +59,7 @@ ('#type' => 'submit', '#value' => t('Save default roles')); - return drupal_get_form('filter_default_admin_defaults_form', $form); + return $form; } function theme_filter_default_admin_defaults_form($form) { @@ -77,14 +71,14 @@ for ($i = 1; $i < count($roles)+1; $i++) { $row = array(); $row[] = $i; - $row[] = form_render($form['role_'.$i]); - $row[] = form_render($form['format_'.$i]); + $row[] = drupal_render($form['role_'.$i]); + $row[] = drupal_render($form['format_'.$i]); $rows[] = $row; } - $output .= form_render($form['help']); + $output .= drupal_render($form['help']); $output .= theme('table', $header, $rows); - $output .= form_render($form); + $output .= drupal_render($form); return $output; }