aboutsummaryrefslogtreecommitdiff
path: root/plugins/video_customfields
diff options
context:
space:
mode:
authorFabio Varesano <fax8@13637.no-reply.drupal.org>2006-06-23 18:52:53 +0000
committerFabio Varesano <fax8@13637.no-reply.drupal.org>2006-06-23 18:52:53 +0000
commit066b2ebd7ab737d7d26e5e9c2f3bd64e72652993 (patch)
treec6fed5bf7dc2d743ea1c90445d11ad58fc1e1efc /plugins/video_customfields
parent2d06475b0af4800e772ac5011b7bd65a11bf2026 (diff)
downloadvideo-066b2ebd7ab737d7d26e5e9c2f3bd64e72652993.tar.gz
video-066b2ebd7ab737d7d26e5e9c2f3bd64e72652993.tar.bz2
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.
Diffstat (limited to 'plugins/video_customfields')
-rw-r--r--plugins/video_customfields/video_customfields.module4
1 files changed, 2 insertions, 2 deletions
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', '');