From 066b2ebd7ab737d7d26e5e9c2f3bd64e72652993 Mon Sep 17 00:00:00 2001 From: Fabio Varesano Date: Fri, 23 Jun 2006 18:52:53 +0000 Subject: Corrected a small typo on the implementation of hook_form_api which let the video_customfields fields disappear. Thanks pancapangrawit (http://drupal.org/user/59924) for pointing this out. --- plugins/video_customfields/video_customfields.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/video_customfields/video_customfields.module b/plugins/video_customfields/video_customfields.module index 95c993c..dc997ea 100644 --- a/plugins/video_customfields/video_customfields.module +++ b/plugins/video_customfields/video_customfields.module @@ -98,8 +98,8 @@ function video_customfields_settings() { * We use this to add some custom fields to the video creation form. * Fields will be displayed only if field title is set on settings page. */ -function video_customfileds_form_alter($form_id, &$form) { - +function video_customfields_form_alter($form_id, &$form) { + if($form_id == 'video_node_form' && isset($form['video']) && user_access('insert custom fields')) { $title1 = variable_get('video_customfield1', ''); -- cgit v1.2.3