I have the most recent version of all required modules, yet I'm still getting this message.

"Money CCK field requires, at least, version 6.x-1.0 of the Formatted Number CCK module."

Comments

markus_petrux’s picture

Status: Active » Needs review

Hi,

I think it's because the .module files of the required modules are not loaded when hook_requirements('install') is evaluated.

Could you please try with this mini-patch?

cvs -z9 diff -u -- money.install (in directory /contributions/modules/money/)
Index: money.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/money/Attic/money.install,v
retrieving revision 1.1.2.5
diff -u -r1.1.2.5 money.install
--- money.install	24 Nov 2008 17:35:10 -0000	1.1.2.5
+++ money.install	23 Feb 2009 12:44:11 -0000
@@ -13,6 +13,7 @@
   if ($phase == 'install') {
     $requirements = array();
     $t = get_t();
+    drupal_load('module', 'format_number');
     if (!function_exists('format_number_get_options')) {
       $requirements['format_number'] = array(
         'title' => $t('Format Number API'),
@@ -23,6 +24,7 @@
         )),
       );
     }
+    drupal_load('module', 'formatted_number');
     if (!function_exists('formatted_number_widget_validate')) {
       $requirements['formatted_number'] = array(
         'title' => $t('Formatted Number CCK'),
markus_petrux’s picture

Status: Needs review » Fixed

Patch in #1 committed to CVS.

markus_petrux’s picture

Status: Fixed » Closed (fixed)