aboutsummaryrefslogtreecommitdiff
path: root/plugins/video_customfields
diff options
context:
space:
mode:
authorFabio Varesano <fax8@13637.no-reply.drupal.org>2006-09-21 12:25:55 +0000
committerFabio Varesano <fax8@13637.no-reply.drupal.org>2006-09-21 12:25:55 +0000
commit781a2e7c4fb8901e14e5a2b2d537185b88c36e97 (patch)
treed2cb06557432b2bda67f83716844e6c8ac3524e7 /plugins/video_customfields
parentd7b1524caa8aa292df7dfea0bead120df68ea5cb (diff)
downloadvideo-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_customfields')
-rw-r--r--plugins/video_customfields/video_customfields.module24
1 files changed, 21 insertions, 3 deletions
diff --git a/plugins/video_customfields/video_customfields.module b/plugins/video_customfields/video_customfields.module
index 972bdc1..fa48795 100644
--- a/plugins/video_customfields/video_customfields.module
+++ b/plugins/video_customfields/video_customfields.module
@@ -14,7 +14,7 @@
*/
function video_customfields_help($section) {
switch ($section) {
- case 'admin/modules#description':
+ case 'admin/settings/modules#description':
return t('Enable addition of custom fileds on video nodes created by video module.');
}
}
@@ -27,6 +27,24 @@ function video_customfields_perm() {
return array('insert custom fields');
}
+/**
+ * Implementation of hook_menu().
+ */
+function video_customfields_menu($may_cache) {
+ $items = array();
+ if ($may_cache) {
+ $items[] = array(
+ 'path' => 'admin/content/video/customfields',
+ 'title' => t('customfields'),
+ 'description' => t('administer video_customfields module settings'),
+ 'callback' => 'drupal_get_form',
+ 'callback arguments' => array('video_customfields_settings_form'),
+ 'access' => user_access('administer site configuration'),
+ 'type' => MENU_NORMAL_ITEM,
+ );
+ }
+ return $items;
+}
/**
* Settings Hook
@@ -34,7 +52,7 @@ function video_customfields_perm() {
* @return
* string of form content or error message
*/
-function video_customfields_settings() {
+function video_customfields_settings_form() {
//Must have "administer site configuration" and "administer video" privilages.
if (!user_access('administer video')) {
drupal_access_denied();
@@ -88,7 +106,7 @@ function video_customfields_settings() {
'#default_value' => variable_get('video_customgroupcollapsed', 1),
'#description' => t('Should the custom fields group be initially collapsed when creating and editing video nodes?')
);
- return $form;
+ return system_settings_form($form);
}