When you disable Phone number the following notices appear:

    Notice: Use of undefined constant CCK_PHONE_PHONE_MAX_LENGTH - assumed 'CCK_PHONE_PHONE_MAX_LENGTH' in cck_phone_field_schema() (line 17 of (...)/sites/all/modules/cck_phone/cck_phone.install).
    Notice: Use of undefined constant CCK_PHONE_CC_MAX_LENGTH - assumed 'CCK_PHONE_CC_MAX_LENGTH' in cck_phone_field_schema() (line 22 of (...)/sites/all/modules/cck_phone/cck_phone.install).
    Notice: Use of undefined constant CCK_PHONE_EXTENSION_MAX_LENGTH - assumed 'CCK_PHONE_EXTENSION_MAX_LENGTH' in cck_phone_field_schema() (line 27 of (...)/sites/all/modules/cck_phone/cck_phone.install).

I set this to minor, because uninstalling the module gets rid of them.

Comments

Jerome F’s picture

Priority: Minor » Normal

My last assumption was not true, each time you disable an other module, the notice is back on the admin/module page.
But that's not the only module which causes that kind of notice, link module also :

Notice: Use of undefined constant LINK_URL_MAX_LENGTH - assumed 'LINK_URL_MAX_LENGTH' in link_field_schema() (line 16 of /Users/jerome/Sites/acquia-drupal/sites/all/modules/link/link.install).

Is it rather a D7 core issue?
Is this somehow related to the field delete issue? http://drupal.org/node/943772

ckng’s picture

Status: Active » Closed (fixed)

Fixed in D7 dev.
Constants were defined in .module, not accessible after disabled.