--- bio.original.module 2008-05-09 19:13:20.000000000 -0400 +++ bio.new.module 2008-01-28 03:30:13.000000000 -0500 @@ -62,12 +62,9 @@ function bio_menu($may_cache) { $node = (object) array('type' => $type, 'uid' => arg(1)); $access = (($user->uid == arg(1)) && node_access('create', $type)) || user_access('administer nodes'); } - - $bio_edit_tab = variable_get('bio_edit_tab', ''); - $tab_title = $bio_edit_tab ? $bio_edit_tab : node_get_types('name', $type); $items[] = array( 'path' => 'user/'. arg(1) .'/bio', - 'title' => $tab_title, + 'title' => node_get_types('name', $type), 'callback' => 'node_page_edit', 'callback arguments' => array($node), 'type' => MENU_LOCAL_TASK, @@ -102,14 +99,6 @@ function bio_form_alter($form_id, &$form unset($form['author']['name']['#autocomplete_path']); $form['author']['name']['#description'] = t('This field is disabled. You cannot alter the author of this entry from within the user area.'); } - - if (variable_get('bio_hide_title', 0) && isset($form['title'])) { - $value = $form['title']['#default_value']; - $form['title'] = array( - '#type' => 'value', - '#value' => $value, - ); - } } // Display CCK fields on the user registration form, if they've been @@ -398,20 +387,6 @@ function bio_settings() { ); } - $form['bio_hide_title'] = array( - '#type' => 'checkbox', - '#title' => t('Hide the title field on bio edit form'), - '#description' => t('If checked, the user will not see a title field when editing the biography. The title of the biography will always be the user\'s username.'), - '#default_value' => variable_get('bio_hide_title', 0), - ); - - $form['bio_edit_tab'] = array( - '#type' => 'textfield', - '#title' => t('Title of the Biography tab'), - '#description' => t('The title of the Biography tab which prompts the user to edit the biography. If not set, the title will default to the name of the Biography content type.'), - '#default_value' => variable_get('bio_edit_tab', ''), - ); - // Strange hack for invalidating Views cache. $add_a_submit = system_settings_form($form); $add_a_submit['#validate']['bio_settings_validate_xxx'] = array();