Where I can place that function and what are the arguments I need to pass for that. Now My profile page looks like this when i go to http://localhost/myproject/user/1 link.
<br />
<br />admin's profile
<br />
<br /> View Edit Invitations Invitations OpenID identities Track Contact Signups
<br />
<br />Member since
<br /> July 2011
<br />Last login
<br /> Within the past half hour
<br />Album image
<br />
<br /> There are 3 albums in total
<br /> There are 5 images in total
<br /> Slideshow
<br />
<br />Groups:
<br />
<br /> Players
<br /> Sports
<br />
<br />Blog
<br /> View recent blog entries
<br />
<br />Newsletters
<br />
<br /> Manage my subscriptions
<br />Current subscriptions
<br /> localhost newsletter, mahesh
<br />
<br />
<br /> Now for this I want to add the
<br />
<br />Total Upload Space used :
<br />
<br />Using that function how I can add that.I am fresher in drupal.
<br />On , Liviu Nicolicioiu <liviu.nicolicioiu@epoint.ro> wrote:
<br />> Check:
<br />>
<br />>
<br />> http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hook_user/6
<br />>
<br />>
<br />> ,
<br />>
<br />>
<br />> with $op = 'view'
<br />>
<br />>
<br />>
<br />>
<br />>
<br />> And function:
<br />>
<br />>
<br />> file_space_used
<br />>
<br />>
<br />>
<br />>
<br />>
<br />>
<br />>
<br />>
<br />> On Fri, Jul 29, 2011 at 10:28 AM, mahesh143an@gmail.com> wrote:
<br />>
<br />>
<br />> > Hi,
<br />>
<br />>
<br />> > Hi I wanted to show the total file upload space used by the user on his
<br />>
<br />>
<br />> > profile page,by using following query.
<br />>
<br />>
<br />> > db_result(db_query("SELECT SUM(filesize) FROM {files} WHERE uid = %d",
<br />>
<br />>
<br />> > $uid));
<br />>
<br />>
<br />> > Which function I need to so the changes and add the field for this
<br />>
<br />>
<br />> > result.Thanks in advance.
<br />>
<br />>
<br />> > --
<br />>
<br />>
<br />> > [ Drupal support list | http://lists.drupal.org/ ]
<br />>
<br />>
<br />> >
<br />>
<br />>
<br />> --
<br />>
<br />>
<br />> [ Drupal support list | http://lists.drupal.org/ ]
<br />>
<br />>
<br />>