file.module

Version 1.11 (checked in on 2009/10/31 at 16:06:36 by dries)

Defines a "managed_file" Form API field and a "file" field for Field module.

Functions

NameDescription
file_ajax_progressMenu callback for upload progress.
file_ajax_uploadMenu callback; Shared AJAX callback for file uploads and deletions.
file_element_infoImplement hook_element_info().
file_file_deleteImplement hook_file_delete().
file_file_downloadImplement hook_file_download().
file_file_referencesImplement hook_file_references().
file_get_file_referencesGet a list of references to a file.
file_get_file_reference_countCount the number of times the file is referenced.
file_icon_mapDetermine the generic icon MIME package based on a file's MIME type.
file_icon_pathGiven a file object, create a path to a matching icon.
file_icon_urlGiven a file object, create a URL to a matching icon.
file_managed_file_processProcess function to expand the managed_file element type.
file_managed_file_save_uploadGiven a managed_file element, save any files that have been uploaded into it.
file_managed_file_submitSubmit handler for non-JavaScript uploads.
file_managed_file_validateAn #element_validate callback for the managed_file element.
file_managed_file_valueThe #value_callback for a managed_file type element.
file_menuImplement hook_menu().
file_progress_implementationDetermine the preferred upload progress implementation.
file_themeImplement hook_theme().
theme_file_iconReturn an image with an appropriate icon for the given file.
theme_file_linkOutput a link to a file.
theme_file_managed_fileTheme a managed file element.
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.