diff options
author | Fabio Varesano <fax8@13637.no-reply.drupal.org> | 2006-09-21 12:25:55 +0000 |
---|---|---|
committer | Fabio Varesano <fax8@13637.no-reply.drupal.org> | 2006-09-21 12:25:55 +0000 |
commit | 781a2e7c4fb8901e14e5a2b2d537185b88c36e97 (patch) | |
tree | d2cb06557432b2bda67f83716844e6c8ac3524e7 /plugins/video_multidownload | |
parent | d7b1524caa8aa292df7dfea0bead120df68ea5cb (diff) | |
download | video-781a2e7c4fb8901e14e5a2b2d537185b88c36e97.tar.gz video-781a2e7c4fb8901e14e5a2b2d537185b88c36e97.tar.bz2 |
Patch #82224 by vhmauery (http://drupal.org/user/28957)
Bring Video up to date with HEAD:
updated all video modules to be used on next drupal 5.0
Diffstat (limited to 'plugins/video_multidownload')
-rw-r--r-- | plugins/video_multidownload/video_multidownload.module | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/plugins/video_multidownload/video_multidownload.module b/plugins/video_multidownload/video_multidownload.module index b936224..23b1826 100644 --- a/plugins/video_multidownload/video_multidownload.module +++ b/plugins/video_multidownload/video_multidownload.module @@ -32,7 +32,15 @@ function video_multidownload_help($section) { function video_multidownload_menu($may_cache) { $items = array(); if ($may_cache) { - ; // for further uses + $items[] = array( + 'path' => 'admin/content/video/multidownload', + 'title' => t('multidownload'), + 'description' => t('administer video_multidownload module settings'), + 'callback' => 'drupal_get_form', + 'callback arguments' => array('video_multidownload_settings_form'), + 'access' => user_access('administer site configuration'), + 'type' => MENU_NORMAL_ITEM, + ); } else { if (arg(0) == 'node' && is_numeric(arg(1))) { @@ -66,7 +74,7 @@ function video_multidownload_perm() { /** * Implementation of hook_settings() */ -function video_multidownload_settings() { +function video_multidownload_settings_form() { $form = array(); $options = array(1 => 'Yes', 0 => 'No'); @@ -84,7 +92,7 @@ function video_multidownload_settings() { '#default_value' => variable_get('video_download_ext', 'mov,wmv,rm,flv,avi,divx,mpg,mpeg,mp4,zip'), '#description' => t('The extensions of files to list from the multi-file download folder on the download page. Extensions should be comma seperated with no spaces, for example (mov,wmv,rm).')); - return $form; + return system_settings_form($form); } |