[support] Reverse Attached File List Order
Maarten van Grootel
mvgrootel at gmail.com
Wed Mar 4 16:27:38 UTC 2009
Hi Bob,
You can override theme_upload_attachments:
http://api.drupal.org/api/function/theme_upload_attachments/6
Put something like the following in your template.php.
YOURTHEME_upload_attachments($files) {
// Reverse files
$files = array_reverse($files)
return theme_upload_attachements($files);
}
Good luck,
Maarten van Grootel
On Wed, Mar 4, 2009 at 3:43 PM, Bob Smither <Smither at c-c-i.com> wrote:
> Dear List,
>
> I am using D5 and have a page with several attached files (see:
> http://lrcf.org/Spotlight). When I upload a new file and attach it to
> the page, it is listed at the end of the list.
>
> Is there a way to reverse this behavior so that the latest uploaded file
> is always placed at the top of the list?
>
> Thanks,
> --
> Bob Smither, Ph.D. smither at c-c-i.com
> ====================================================================
> The Three Great Lies:
> 1. Your check is in the mail.
> 2. I'll respect you in the morning.
> 3. We're from the government and we are here to help you.
> ====================================================================
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20090304/5b9debf2/attachment.htm
More information about the support
mailing list