User: burningdog Branch: HEAD Date: Fri, 29 Jan 2010 15:39:50 +0000 Modified files: /modules/ec_file ec_file.inc ec_file.module ec_file.theme.inc Log message: Added a block which shows purchased files available to download. This has meant: - Renaming ec_file_my_overview() to ec_file_display_purchased_files_as_table(), which displays a user's purchased files as a table list. - Creating a similar function, ec_file_display_purchased_files_as_block(), which displays a user's purchased files in a block. - Adding ec_file_block() to provide a 'Purchased files' block - Added a new theme function, ec_file_myfiles_block() - ec_file_my_overview() is now ec_file_purchased_files(), which returns all files purchased by a user, as an array. - Moved a whole stack of code out of theme_ec_file_myfiles() into its own function: ec_file_format_file(), which takes a file array as an argument, and returns an array of the following elements: File title, file size, expiry date, link to download file - Added theme_ec_file_myfiles_link_list() which themes all purchased files as an html list of links, one per line. Minor code cleanup. Links: http://cvs.drupal.org/diff.php?path=contributions/modules/ec_file/ec_file.in... http://cvs.drupal.org/diff.php?path=contributions/modules/ec_file/ec_file.mo... http://cvs.drupal.org/diff.php?path=contributions/modules/ec_file/ec_file.th...