Commit 946fcff4 authored by robertDouglass's avatar robertDouglass

#129805 by dldege: removes unused form and fixes action in approval-needed buddy making

parent 831c874a
......@@ -555,8 +555,9 @@ function buddylist_get_buddy_actions(&$viewing_user, &$viewed_user) {
$actions[] = theme('remove_from_buddylist_link', $viewed_user);
}
else if (in_array($viewing_user->uid, array_keys(buddylist_get_requestees($viewed_user->uid)))) {
$actions[] = t('This user has requested to add you to your @buddylist.', buddylist_translation()) .
drupal_get_form('buddylist_approval_form', $viewing_user->uid, $viewed_user->uid);
$actions[] = t('This user has requested to add you to their @buddylist. ', buddylist_translation()) .
theme('buddylist_accept_request_link', $viewing_user->uid, $viewed_user->uid) . " | " .
theme('buddylist_deny_request_link', $viewing_user->uid, $viewed_user->uid);
}
else {
$actions[] = theme('add_to_buddylist_link', $viewed_user);
......@@ -1039,32 +1040,6 @@ function buddylist_confirm_form_submit($form_id, $form_values) {
}
}
function buddylist_approval_form($requestee_uid, $requester_uid) {
$form = array();
$form['requestee_uid'] = array(
'#type' => 'hidden',
'#value' => $requestee_uid,
);
$form['requester_uid'] = array(
'#type' => 'hidden',
'#value' => $requester_uid
);
$form['approve'] = array(
'#type' => 'submit',
'#value' => t('Approve')
);
$form['deny'] = array(
'#type' => 'submit',
'#value' => t('Deny'),
);
return $form;
}
function buddylist_request_cancel_form($requestee_uid, $requester_uid) {
$form['requestee_uid'] = array(
'#type' => 'hidden',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment