Constants

NameLocationDescription
DRUPAL_DISABLEDmodules/system/system.moduleDisabled option on forms and settings
DRUPAL_HASH_COUNTincludes/password.incThe standard log2 number of iterations for password stretching. This should increase by 1 at least every other Drupal version in order to counteract increases in the speed and power of computers available to crack the hashes.
DRUPAL_KILOBYTEincludes/bootstrap.incThe number of bytes in a kilobyte. For more information, visit http://en.wikipedia.org/wiki/Kilobyte.
DRUPAL_MAXIMUM_TEMP_FILE_AGEmodules/system/system.moduleMaximum age of temporary files in seconds.
DRUPAL_MAX_HASH_COUNTincludes/password.incThe maximum allowed log2 number of iterations for password stretching.
DRUPAL_MINIMUM_MYSQLincludes/bootstrap.incMinimum supported version of MySQL, if it is used.
DRUPAL_MINIMUM_PGSQLincludes/bootstrap.incMinimum supported version of PostgreSQL, if it is used.
DRUPAL_MINIMUM_PHPincludes/bootstrap.incMinimum supported version of PHP.
DRUPAL_MINIMUM_PHP_MEMORY_LIMITincludes/bootstrap.incMinimum recommended value of PHP memory_limit.
DRUPAL_MIN_HASH_COUNTincludes/password.incThe minimum allowed log2 number of iterations for password stretching.
DRUPAL_NO_CACHEincludes/common.incThe block should not get cached. This setting should be used:
DRUPAL_OPTIONALmodules/system/system.moduleOptional option on forms and settings
DRUPAL_REQUIREDmodules/system/system.moduleRequired option on forms and settings
DRUPAL_ROOT./xmlrpc.phpRoot directory of Drupal installation.
DRUPAL_USER_TIMEZONE_DEFAULTmodules/system/system.moduleNew users will be set to the default time zone at registration.
DRUPAL_USER_TIMEZONE_EMPTYmodules/system/system.moduleNew users will get an empty time zone at registration.
DRUPAL_USER_TIMEZONE_SELECTmodules/system/system.moduleNew users will select their own timezone at registration.
EMAIL_MAX_LENGTHmodules/user/user.moduleMaximum length of user e-mail text field.
ERROR_REPORTING_DISPLAY_ALLincludes/errors.incError reporting level: display all messages.
ERROR_REPORTING_DISPLAY_SOMEincludes/errors.incError reporting level: display errors and warnings.
ERROR_REPORTING_HIDEincludes/errors.incError reporting level: display no errors.
FIELD_BEHAVIOR_CUSTOMmodules/field/field.moduleTODO
FIELD_BEHAVIOR_DEFAULTmodules/field/field.moduleTODO
FIELD_BEHAVIOR_NONEmodules/field/field.moduleTODO
FIELD_CARDINALITY_UNLIMITEDmodules/field/field.moduleValue for $field['cardinality'] property to indicate it can hold an unlimited number of values.
FIELD_LOAD_CURRENTmodules/field/field.moduleAge argument for loading the most recent version of an entity's field data with field_attach_load().
FIELD_LOAD_REVISIONmodules/field/field.moduleAge argument for loading the version of an entity's field data specified in the entity with field_attach_load().
FIELD_QUERY_COMPLETEmodules/field/field.moduleCursor return value for field_attach_query() to indicate that no more data is available.
FIELD_QUERY_NO_LIMITmodules/field/field.moduleLimit argument for field_attach_query() to request all available entities instead of a limited number.
FIELD_STORAGE_INSERTmodules/field/field.attach.incArgument for an insert operation.
FIELD_STORAGE_UPDATEmodules/field/field.attach.incArgument for an update operation.
FILE_CREATE_DIRECTORYincludes/file.incFlag used by file_prepare_directory() -- create directory if not present.
FILE_EXECUTABLEincludes/install.incFile permission check -- File is executable.
FILE_EXISTincludes/install.incFile permission check -- File exists.
FILE_EXISTS_ERRORincludes/file.incFlag for dealing with existing files: Do nothing and return FALSE.
FILE_EXISTS_RENAMEincludes/file.incFlag for dealing with existing files: Appends number until name is unique.
FILE_EXISTS_REPLACEincludes/file.incFlag for dealing with existing files: Replace the existing file.
FILE_MODIFY_PERMISSIONSincludes/file.incFlag used by file_prepare_directory() -- file permissions may be changed.
FILE_NOT_EXECUTABLEincludes/install.incFile permission check -- File is not executable.
FILE_NOT_EXISTincludes/install.incFile permission check -- File does not exist.
FILE_NOT_READABLEincludes/install.incFile permission check -- File is not readable.
FILE_NOT_WRITABLEincludes/install.incFile permission check -- File is not writable.
FILE_READABLEincludes/install.incFile permission check -- File is readable.
FILE_STATUS_PERMANENTincludes/file.incIndicates that the file is permanent and should not be deleted.
FILE_URL_TEST_CDN_1modules/simpletest/tests/file_test.module
FILE_URL_TEST_CDN_2modules/simpletest/tests/file_test.module
FILE_WRITABLEincludes/install.incFile permission check -- File is writable.
HTTP_REQUEST_TIMEOUTincludes/common.incError code indicating that the request made by drupal_http_request() exceeded the specified timeout.
IMAGE_STORAGE_DEFAULTmodules/image/image.moduleImage style constant for module-defined presets in code.
IMAGE_STORAGE_EDITABLEmodules/image/image.moduleImage style constant to represent an editable preset.