From 781a2e7c4fb8901e14e5a2b2d537185b88c36e97 Mon Sep 17 00:00:00 2001 From: Fabio Varesano Date: Thu, 21 Sep 2006 12:25:55 +0000 Subject: 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 --- plugins/video_multidownload/video_multidownload.module | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'plugins/video_multidownload/video_multidownload.module') 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); } -- cgit v1.2.3