Closed (fixed)
Project:
Flag Friend
Version:
6.x-1.0-rc2
Component:
User interface
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Nov 2009 at 07:25 UTC
Updated:
3 Jan 2010 at 20:06 UTC
Hey,
While going through the module I made some change to the code to improve UI but I'm not really a developer and I don't know how to provide patches or updates.
The flag for 'approve' when its appearing as an intermediary between friend request or not doesen't show any text other than "Approve." This is bound to be confusing for users, approve what? So I made a change to the code to show the user name. May not have been the most elegant way to do it but it works.
Line 85.
case FLAG_FRIEND_APPROVAL:
$uid = $vars['content_id'];
$username = user_load($uid);
$name = $username->name;
$name .= "'s";
$vars['link_text'] = t('Approve '.$name.' friend request');
break;
}
Comments
Comment #1
Scott Reynolds commentedHeres how to create a patch
http://drupal.org/patch/create
Comment #2
sirkitree commentedClosing due to inactivity - please reopen if you plan on supplying a patch.