From c7474ecfeb5036e568c940b629accd6a3d038b09 Mon Sep 17 00:00:00 2001 From: Heshan Wanigasooriya Date: Thu, 13 Jan 2011 02:37:51 +0000 Subject: #1024822 by hadsie. [Patch] Class attribute in forms is an array in D7 and Fatal error: Call to undefined function content_fields() D7 --- views/video.views.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views') diff --git a/views/video.views.inc b/views/video.views.inc index 4d4cc36..a0c5384 100644 --- a/views/video.views.inc +++ b/views/video.views.inc @@ -31,7 +31,7 @@ function video_views_data() { $data = array(); $data['video']['table']['group'] = t('Video'); $widgets = array('videoftp_widget', 'uploadfield_widget'); - foreach (content_fields () as $field) { + foreach (field_info_fields () as $field) { if ($field['module'] == 'filefield' && isset($field['widget']['type']) && in_array($field['widget']['type'], $widgets)) { $views_data = content_views_field_views_data($field); $table_alias = content_views_tablename($field); -- cgit v1.2.3