/[drupal]/contributions/modules/swfupload/swfupload.module
ViewVC logotype

Diff of /contributions/modules/swfupload/swfupload.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.11, Sat Nov 22 09:51:47 2008 UTC revision 1.12, Tue Nov 25 11:04:03 2008 UTC
# Line 471  function swfupload_elements() { Line 471  function swfupload_elements() {
471      '#filepath' => file_directory_path(),      '#filepath' => file_directory_path(),
472      '#max_img_resolution' => '800x600',      '#max_img_resolution' => '800x600',
473      '#file_extensions' => 'jpg jpeg gif png txt',      '#file_extensions' => 'jpg jpeg gif png txt',
474      '#max_file_size' => intval(ini_get('upload_max_filesize')), // The maximum bytes per file      '#max_file_size' => intval(ini_get('upload_max_filesize')) .'MB', // The maximum megabytes per file
475      '#max_queue_size' => intval(ini_get('upload_max_filesize')), // The maximum bytes in the queue      '#max_queue_size' => intval(ini_get('upload_max_filesize')) .'MB', // The maximum megabytes in the queue
476      '#node_settings' => array(), // Used to pass the settings for the current node to hook_swfupload.      '#node_settings' => array(), // Used to pass the settings for the current node to hook_swfupload.
477    );    );
478    return $type;    return $type;
# Line 497  function _swfupload_add_js($element) { Line 497  function _swfupload_add_js($element) {
497        'instance' => drupal_to_js(array('name' => $element['#name'])),        'instance' => drupal_to_js(array('name' => $element['#name'])),
498        'node_settings' => drupal_to_js($element['#node_settings']),        'node_settings' => drupal_to_js($element['#node_settings']),
499      ),      ),
500      'file_size_limit' => $element['#max_file_size'] .'B',      'file_size_limit' => $element['#max_file_size'],
501      'file_types' => '*.'. str_replace(" ", ";*.", $element['#file_extensions']),      'file_types' => '*.'. str_replace(" ", ";*.", $element['#file_extensions']),
502      'file_types_description' => ($element['#description'] ? $element['#description'] : ''),      'file_types_description' => ($element['#description'] ? $element['#description'] : ''),
503      'file_upload_limit' => $element['#max_files'],      'file_upload_limit' => $element['#max_files'],

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.2