From 3c3cee28b94eb0c14f6958e1e6440bba15bc9a7d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 13 Apr 2010 15:23:03 +0000 Subject: - Patch #716496 by JohnAlbin: documentation updates for theme functions. --- modules/file/file.module | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'modules/file/file.module') diff --git a/modules/file/file.module b/modules/file/file.module index b3153e647..b925d7c2e 100644 --- a/modules/file/file.module +++ b/modules/file/file.module @@ -607,7 +607,13 @@ function file_managed_file_save_upload($element) { } /** - * Theme a managed file element. + * Returns HTML for a managed file element. + * + * @param $variables + * An associative array containing: + * - element: A render element representing the file. + * + * @ingroup themeable */ function theme_file_managed_file($variables) { $element = $variables['element']; @@ -621,11 +627,13 @@ function theme_file_managed_file($variables) { } /** - * Output a link to a file. + * Returns HTML for a link to a file. * * @param $variables * An associative array containing: * - file: A file object to which the link will be created. + * + * @ingroup themeable */ function theme_file_link($variables) { $file = $variables['file']; @@ -654,11 +662,13 @@ function theme_file_link($variables) { } /** - * Return an image with an appropriate icon for the given file. + * Returns HTML for an image with an appropriate icon for the given file. * * @param $variables * An associative array containing: * - file: A file object for which to make an icon. + * + * @ingroup themeable */ function theme_file_icon($variables) { $file = $variables['file']; -- cgit v1.2.3