Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I think it should be calling _content_fields(). Sorry I can't attach a patch properly right now. I hope this will do:
cvs diff: Diffing .
Index: date.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/date/date.install,v
retrieving revision 1.4.2.1
diff -u -r1.4.2.1 date.install
--- date.install 24 Aug 2006 20:00:54 -0000 1.4.2.1
+++ date.install 25 Aug 2006 23:28:29 -0000
@@ -55,7 +55,7 @@
include_once(drupal_get_path('module', 'content') .'/content.module');
include_once(drupal_get_path('module', 'content') .'/content_admin.inc');
- $fields = content_fields();
+ $fields = _content_fields();
foreach ($fields as $field) {
switch ($field['type']) {
@@ -92,7 +92,7 @@
include_once(drupal_get_path('module', 'content') .'/content.module');
include_once(drupal_get_path('module', 'content') .'/content_admin.inc');
- $fields = content_fields();
+ $fields = _content_fields();
foreach ($fields as $field) {
switch ($field['type']) {
Comments
Comment #1
KarenS CreditAttribution: KarenS commentedThis one has been throwing me for a loop. When I branched to 4.7 I changed content_fields() to _content_fields() because that's what it was in the 4.7 version of the content module for the last few months, but then everyone started reporting errors. So I double-checked the latest 4.7 version in the cvs repository and somewhere along the line the function got changed to content_fields(), so I changed everything back again in the date module. I just took another look in the cvs repository and it looks like the 4.7 version of the content_module is using content_fields(). Are you seeing something different??
Comment #2
KarenS CreditAttribution: KarenS commentedJust trying to clean up my issues queue. I think this was fixed in earlier commit as noted above. Please re-open if not.
Comment #3
drewish CreditAttribution: drewish commentedyeah, it's fixed. i had a bad tag on my cvs checkout that was preventing it from updating.
Comment #4
(not verified) CreditAttribution: commented