[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/upload_element/ -> upload_element.pages.inc (summary)

(no description)

File Size: 183 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  image_upload_element_thumb()
  image_upload_element_preview_path()
  upload_element_js()
  locate_upload_element()

Functions
Functions that are not part of a class:

image_upload_element_thumb()   X-Ref
Generates a temp image for image preview.

This uses core Drupal image processing.

image_upload_element_preview_path($form_build_id, $name, $default = FALSE)   X-Ref
This parses the session to pull out the filepath of the image.

param: string $form_build_id The build id of the current form.
param: string $name The key of the element.
param: string $default A default image path to override the modules default image.
return: object A file object, though the only property may be the filepath.

upload_element_js($form_build_id, $form_id, $name)   X-Ref
Handles the AHAH upload request.

param: string $name The elements name.

locate_upload_element(&$form, $name, $extras = array()   X-Ref
This does a recursive check on the cached form
to locate a given element.

param: array $form The form.
param: string $name The element name.
return: mixed Either the found element or FALSE.



Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7