In Drupal Commons, we're using the Realnames module. Is there a way to extend this module's information to other search box fields?
For example in the Organic Groups invite (/og/users/??/invite), could my users search for other users by the user's first or last name? That is, in the form og_invite_link_invite_page_form's first field (edit-invitees), how could I search on an individual's Given Name (first name) or Family Name (last name)?
This addition provided what I needed. Basically, I needed to override the $form['invitees'] by using and slighly modifying og_username_helper.module ( http://drupal.org/project/og_username_helper ).
74 if ($form['#id'] == 'og-invite-link-invite-page-form') {
75 // print 'in';
76 // print_r($form['invitees']);
77
78 $form['invitees'] = array(
79 '#type' => 'textfield',
80 '#description' => t('Lookup a username and add it to the list below.'),
81 '#autocomplete_path' => 'og/username_helper/autocomplete',
82 '#size' => 40,
83 '#maxlength' => 60,
84 '#weight' => -2,
85 '#access' => $helper_access,
86 );
87
88 return $form;
89 }
90