[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/video/ -> video_widget.inc (summary)

(no description)

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

Defines 12 functions

  video_widget_element_settings()
  _video_dimensions_options()
  video_widget_process()
  video_convert_process()
  video_upload_manual_thumb()
  video_default_widget_settings()
  video_default_widget_settings_validate()
  video_widget_settings_file_path_validate()
  video_web_extensions()
  video_thumb_process()
  video_explode()
  video_format_right()

Functions
Functions that are not part of a class:

video_widget_element_settings(&$element)   X-Ref
Process elements loads on settings

param: array $element

_video_dimensions_options(&$options, $video)   X-Ref
Function updates our options list to show matching aspect ratios and if we have a matching resolution.

We will update the options array by reference and return the aspect ratio of the file.

video_widget_process(&$element, &$form_state)   X-Ref
Video_widget_process for API handlers for any video types.

param: array $element
param: array $form_state

video_convert_process(&$element)   X-Ref
Adds a video to the video rendering table.

If auto converting, it will convert your video to flv right now.  We are passing the element by reference
just in case we ever want to add more to the element during this process.

param: array $element Form element to get the video file from.

video_upload_manual_thumb(&$element)   X-Ref
Handle saving of manual thumbs


video_default_widget_settings($widget)   X-Ref
No description

video_default_widget_settings_validate($element, &$form_state)   X-Ref
Element specific validation for video default value.


video_widget_settings_file_path_validate($element, &$form_state)   X-Ref
No description

video_web_extensions($ext)   X-Ref
Compares passed extensions with normal video web extensions.

param: string $ext
return: bool

video_thumb_process(&$element)   X-Ref
Utility function that will add a preview of thumbnails for you to select when uploading videos.


video_explode($delimeter, $dimensions)   X-Ref
#options helper function to set our key=value for the form api.


video_format_right($value)   X-Ref
No description



Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7