function commons_profile_friend_search_form in Drupal Commons 6.2
The "find a new friend" search form
1 string reference to 'commons_profile_friend_search_form'
- _commons_profile_find_new_friends_block_view in modules/
features/ commons_profile/ commons_profile.blocks.inc - Render the "find new friends" block
File
- modules/
features/ commons_profile/ commons_profile.form.inc, line 11 - Form building and altering functions
Code
function commons_profile_friend_search_form(&$form_state) {
$form['search_message'] = array(
'#value' => t('Search for other site users'),
);
$form['search_text'] = array(
'#type' => 'textfield',
'#autocomplete_path' => 'user/findfriends/autocomplete',
);
$form['search_button'] = array(
'#type' => 'submit',
'#value' => t('Search'),
);
return $form;
}