Skip navigation
Help

Constants

NameLocationDescription
DRUPAL_HASH_COUNTdrupal/includes/password.incThe standard log2 number of iterations for password stretching. This should increase by 1 every Drupal version in order to counteract increases in the speed and power of computers available to crack the hashes.
DRUPAL_HASH_LENGTHdrupal/includes/password.incThe expected (and maximum) number of characters in a hashed password.
DRUPAL_KILOBYTEdrupal/includes/bootstrap.incThe number of bytes in a kilobyte. For more information, visit http://en.wikipedia.org/wiki/Kilobyte.
DRUPAL_MAXIMUM_TEMP_FILE_AGEdrupal/modules/system/system.moduleMaximum age of temporary files in seconds.
DRUPAL_MAX_HASH_COUNTdrupal/includes/password.incThe maximum allowed log2 number of iterations for password stretching.
DRUPAL_MINIMUM_PHPdrupal/includes/bootstrap.incMinimum supported version of PHP.
DRUPAL_MINIMUM_PHP_MEMORY_LIMITdrupal/includes/bootstrap.incMinimum recommended value of PHP memory_limit.
DRUPAL_MIN_HASH_COUNTdrupal/includes/password.incThe minimum allowed log2 number of iterations for password stretching.
DRUPAL_NO_CACHEdrupal/includes/common.incThe block should not get cached. This setting should be used:
DRUPAL_OPTIONALdrupal/modules/system/system.moduleOptional option on forms and settings
DRUPAL_PHP_FUNCTION_PATTERNdrupal/includes/bootstrap.incRegular expression to match PHP function names.
DRUPAL_REQUIREDdrupal/modules/system/system.moduleRequired option on forms and settings
DRUPAL_ROOTdrupal/modules/simpletest/tests/http.php
DRUPAL_ROOTdrupal/modules/simpletest/tests/https.php
DRUPAL_ROOTdrupal/authorize.phpRoot directory of Drupal installation.
DRUPAL_ROOTdrupal/cron.phpRoot directory of Drupal installation.
DRUPAL_ROOTdrupal/index.phpRoot directory of Drupal installation.
DRUPAL_ROOTdrupal/install.phpRoot directory of Drupal installation.
DRUPAL_ROOTdrupal/update.phpRoot directory of Drupal installation.
DRUPAL_ROOTdrupal/xmlrpc.phpRoot directory of Drupal installation.
DRUPAL_USER_TIMEZONE_DEFAULTdrupal/modules/system/system.moduleNew users will be set to the default time zone at registration.
DRUPAL_USER_TIMEZONE_EMPTYdrupal/modules/system/system.moduleNew users will get an empty time zone at registration.
DRUPAL_USER_TIMEZONE_SELECTdrupal/modules/system/system.moduleNew users will select their own timezone at registration.
EMAIL_MAX_LENGTHdrupal/modules/user/user.moduleMaximum length of user e-mail text field.
ERROR_REPORTING_DISPLAY_ALLdrupal/includes/errors.incError reporting level: display all messages.
ERROR_REPORTING_DISPLAY_SOMEdrupal/includes/errors.incError reporting level: display errors and warnings.
ERROR_REPORTING_HIDEdrupal/includes/errors.incError reporting level: display no errors.
FIELD_BEHAVIOR_CUSTOMdrupal/modules/field/field.moduleValue for field API indicating a widget can receive several field values.
FIELD_BEHAVIOR_DEFAULTdrupal/modules/field/field.moduleValue for field API concerning widget default and multiple value settings.
FIELD_BEHAVIOR_NONEdrupal/modules/field/field.moduleValue for field API indicating a widget doesn't accept default values.
FIELD_CARDINALITY_UNLIMITEDdrupal/modules/field/field.moduleValue for field API indicating a field accepts an unlimited number of values.
FIELD_LOAD_CURRENTdrupal/modules/field/field.moduleAge argument for loading the most recent version of an entity's field data with field_attach_load().
FIELD_LOAD_REVISIONdrupal/modules/field/field.moduleAge argument for loading the version of an entity's field data specified in the entity with field_attach_load().
FIELD_STORAGE_INSERTdrupal/modules/field/field.attach.incArgument for an insert operation.
FIELD_STORAGE_UPDATEdrupal/modules/field/field.attach.incArgument for an update operation.
FILE_CREATE_DIRECTORYdrupal/includes/file.incFlag used by file_prepare_directory() -- create directory if not present.
FILE_EXECUTABLEdrupal/includes/install.incFile permission check -- File is executable.
FILE_EXISTdrupal/includes/install.incFile permission check -- File exists.
FILE_EXISTS_ERRORdrupal/includes/file.incFlag for dealing with existing files: Do nothing and return FALSE.
FILE_EXISTS_RENAMEdrupal/includes/file.incFlag for dealing with existing files: Appends number until name is unique.
FILE_EXISTS_REPLACEdrupal/includes/file.incFlag for dealing with existing files: Replace the existing file.
FILE_MODIFY_PERMISSIONSdrupal/includes/file.incFlag used by file_prepare_directory() -- file permissions may be changed.
FILE_NOT_EXECUTABLEdrupal/includes/install.incFile permission check -- File is not executable.
FILE_NOT_EXISTdrupal/includes/install.incFile permission check -- File does not exist.
FILE_NOT_READABLEdrupal/includes/install.incFile permission check -- File is not readable.
FILE_NOT_WRITABLEdrupal/includes/install.incFile permission check -- File is not writable.
FILE_READABLEdrupal/includes/install.incFile permission check -- File is readable.
FILE_STATUS_PERMANENTdrupal/includes/file.incIndicates that the file is permanent and should not be deleted.
FILE_URL_TEST_CDN_1drupal/modules/simpletest/tests/file_test.module
FILE_URL_TEST_CDN_2drupal/modules/simpletest/tests/file_test.module