--- cite.module	2009-10-27 07:54:03.000000000 -0700
+++ cite.module.dist	2009-10-27 07:43:13.000000000 -0700
@@ -95,15 +95,6 @@ function cite_admin_settings() {
     '#description' => t('Some styles such as MLA have a field for "Publisher". Used for !publisher in the format.'),
     '#default_value' => variable_get('cite_var_publisher', variable_get('site_name', $_SERVER['HTTP_HOST'])),
   );
-
-  $profile_fields = cite_get_author_name_sources();
-  $form['cite_settings']['cite_var_name_source'] = array(
-    '#type' => 'select',
-    '#title' => t('Author name source'),
-    '#description' => t('Used for !name in the format.'),
-    '#options' => $profile_fields,
-    '#default_value' => variable_get('cite_var_name_source', variable_get('site_var_name_source', 'name')),
-  );
   
   $form['info'] = array(
     '#value' => 'You may reorder the list by moving contents around. Leave "Format" blank for unused formats. Date format follows PHP '. l('date function', 'http://www.php.net/date', array('attributes' => array('target' => '_blank'))),
@@ -178,9 +169,8 @@ function cite_styles($author, $node) {
   foreach ($templates as $tpl) {
     if (!$tpl['template']) continue;
 
-    $name_source = variable_get('cite_var_name_source', variable_get('site_var_name_source', 'name'));
     $args = array(
-      '!name' => check_plain($author->$name_source),
+      '!name' => check_plain($author->name),
       '!title' => check_plain($node->title),
       '!site' => check_plain(variable_get('cite_var_site_name', variable_get('site_name', $_SERVER['HTTP_HOST']))),
       '!publisher' => check_plain(variable_get('cite_var_publisher', variable_get('site_name', $_SERVER['HTTP_HOST']))),
@@ -233,8 +223,7 @@ function theme_cite($styles) {
   if ($styles) {
     $output = '<br />'. t('You may need to edit author\'s name to meet the style formats, which are in most cases "Last First" name.');
 
-    $name_source = variable_get('cite_var_name_source', variable_get('site_var_name_source', 'name'));
-    $author = check_plain($styles['author']->$name_source);
+    $author = check_plain($styles['author']->name);
     $title = check_plain($styles['node']->title);
     $site = check_plain(variable_get('cite_var_site_name', variable_get('site_name', $_SERVER['HTTP_HOST'])));
     $publisher = check_plain(variable_get('cite_var_publisher', variable_get('site_name', $_SERVER['HTTP_HOST'])));
@@ -244,7 +233,7 @@ function theme_cite($styles) {
 
     $output .= <<<BIBLIO_DETAILS
       <div class="cite-biblio-details">
-        <h3>Bibliographic details:</h3>
+        <h3>Bibiographic details:</h3>
         <ul>
           <li>Page name: {$title}</li>
           <li>Author: {$author}</li>
@@ -286,18 +275,4 @@ function cite_link($type, $node = NULL, 
   }
 
   return $links;
-}
-
-/**
- * Helper function that generates list of available sources for author name.
- */
-function cite_get_author_name_sources() {
-  $fields = array('name' => t('Raw username'));
-  if (module_exists('profile')) {
-    $result = db_query('SELECT name, title FROM {profile_fields} ORDER BY title');
-    while ($field = db_fetch_object($result)) {
-      $fields[$field->name] = t('Profile field ') . $field->title;
-    }
-  }
-  return $fields;
-}
+}
\ No newline at end of file
