名称![sort descending sort icon](http://www.drupaluser.org/misc/arrow-desc.png) | 位置 | 描述 |
BLOCK_CACHE_GLOBAL | modules/ block/ block.module | The block is the same for every user on every page where it is visible. |
BLOCK_CACHE_PER_PAGE | modules/ block/ block.module | The block can change depending on the page being viewed. |
BLOCK_CACHE_PER_ROLE | modules/ block/ block.module | The block can change depending on the roles the user viewing the page belongs to. This is the default setting, used when the block does not specify anything. |
BLOCK_CACHE_PER_USER | modules/ block/ block.module | The block can change depending on the user viewing the page. This setting can be resource-consuming for sites with large number of users, and thus should only be used when BLOCK_CACHE_PER_ROLE is not sufficient. |
BLOCK_NO_CACHE | modules/ block/ block.module | The block should not get cached. This setting should be used: for simple blocks (notably those that do not perform any db query), where querying the db cache would be more expensive than directly generating the content. for blocks that change too... |
BLOCK_REGION_NONE | modules/ block/ block.module | Denotes that a block is not enabled in any region and should not be shown. |
CACHE_AGGRESSIVE | includes/ bootstrap.inc | Indicates that page caching is using "aggressive" mode. This bypasses loading any modules for additional speed, which may break functionality in modules that expect to be run on each page load. |
CACHE_DISABLED | includes/ bootstrap.inc | Indicates that page caching is disabled. |
CACHE_NORMAL | includes/ bootstrap.inc | Indicates that page caching is enabled, using "normal" mode. |
CACHE_PERMANENT | includes/ bootstrap.inc | Indicates that the item should never be removed unless explicitly told to using 7 }1 `1 F2 Z, r: i8 W; _
entries will be cleared from the cache_page and cache_block tables." href="http://www.drupaluser.org/api/function/cache_clear_all/7" style="color: rgb(0, 113, 179); text-decoration: none; ">cache_clear_all() with a cache ID. |
CACHE_TEMPORARY | includes/ bootstrap.inc | Indicates that the item should be removed at the next general cache wipe. |
CHECK_PLAIN | includes/ bootstrap.inc | Flag for drupal_set_title(); text is not sanitized, so run check_plain(). |
COMMENT_ANONYMOUS_MAYNOT_CONTACT | modules/ comment/ comment.module | Anonymous posters cannot enter their contact information. |
COMMENT_ANONYMOUS_MAY_CONTACT | modules/ comment/ comment.module | Anonymous posters may leave their contact information. |
COMMENT_ANONYMOUS_MUST_CONTACT | modules/ comment/ comment.module | Anonymous posters are required to leave their contact information. |
COMMENT_FORM_BELOW | modules/ comment/ comment.module | Comment form should be shown below post or list of comments. |
COMMENT_FORM_SEPARATE_PAGE | modules/ comment/ comment.module | Comment form should be displayed on a separate page. |
COMMENT_MODE_FLAT_COLLAPSED | modules/ comment/ comment.module | Comments are displayed in a flat list - collapsed. |
COMMENT_MODE_FLAT_EXPANDED | modules/ comment/ comment.module | Comments are displayed in a flat list - expanded. |
COMMENT_MODE_THREADED_COLLAPSED | modules/ comment/ comment.module | Comments are displayed as a threaded list - collapsed. |
COMMENT_MODE_THREADED_EXPANDED | modules/ comment/ comment.module | Comments are displayed as a threaded list - expanded. |
COMMENT_NODE_DISABLED | modules/ comment/ comment.module | Comments for this node are disabled. |
COMMENT_NODE_READ_ONLY | modules/ comment/ comment.module | Comments for this node are locked. |
COMMENT_NODE_READ_WRITE | modules/ comment/ comment.module | Comments are enabled on this node. |
COMMENT_NOT_PUBLISHED | modules/ comment/ comment.module | Comment is awaiting approval. |
COMMENT_PREVIEW_OPTIONAL | modules/ comment/ comment.module | Comment preview is optional. |
COMMENT_PREVIEW_REQUIRED | modules/ comment/ comment.module | Comment preview is required. |
COMMENT_PUBLISHED | modules/ comment/ comment.module | Comment is published. |
DRUPAL_ANONYMOUS_RID | includes/ bootstrap.inc | Role ID for anonymous users; should match what's in the "role" table. |
DRUPAL_AUTHENTICATED_RID | includes/ bootstrap.inc | Role ID for authenticated users; should match what's in the "role" table. |
DRUPAL_BOOTSTRAP_ACCESS | includes/ bootstrap.inc | Fourth bootstrap phase: identify and reject banned hosts. |
DRUPAL_BOOTSTRAP_CONFIGURATION | includes/ bootstrap.inc | First bootstrap phase: initialize configuration. |
DRUPAL_BOOTSTRAP_DATABASE | includes/ bootstrap.inc | Third bootstrap phase: initialize database layer. |
DRUPAL_BOOTSTRAP_EARLY_PAGE_CACHE | includes/ bootstrap.inc | Second bootstrap phase: try to call a non-database cache fetch routine. |
DRUPAL_BOOTSTRAP_FULL | includes/ bootstrap.inc | Final bootstrap phase: Drupal is fully loaded; validate and fix input data. |
DRUPAL_BOOTSTRAP_LANGUAGE | includes/ bootstrap.inc | Eighth bootstrap phase: find out language of the page. |
DRUPAL_BOOTSTRAP_LATE_PAGE_CACHE | includes/ bootstrap.inc | Seventh bootstrap phase: loadbootstrap.inc and module.inc, start the variable system and try to serve a page from the cache. |
DRUPAL_BOOTSTRAP_PATH | includes/ bootstrap.inc | Nineth bootstrap phase: set $_GET['q'] to Drupal path of request. |
DRUPAL_BOOTSTRAP_SESSION | includes/ bootstrap.inc | Fifth bootstrap phase: initialize session handling. |
DRUPAL_BOOTSTRAP_VARIABLES | includes/ bootstrap.inc | Sixth bootstrap phase: initialize the variable system. |
DRUPAL_CORE_COMPATIBILITY | modules/ system/ system.module | Core API compatibility. |
DRUPAL_HASH_COUNT | includes/ password.inc | The 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_KILOBYTE | includes/ bootstrap.inc | The number of bytes in a kilobyte. The scientific standard for kilo is 1000, but used commonly in the field of computers to represent 1024 bits. For more information on the different standards please visit: http://en.wikipedia.org/wiki/Kilobyte. |
DRUPAL_MAXIMUM_TEMP_FILE_AGE | modules/ system/ system.module | Maximum age of temporary files in seconds. |
DRUPAL_MAX_HASH_COUNT | includes/ password.inc | The maximum allowed log2 number of iterations for password stretching. |
DRUPAL_MINIMUM_MYSQL | modules/ system/ system.module | Minimum supported version of MySQL, if it is used. |
DRUPAL_MINIMUM_PGSQL | modules/ system/ system.module | Minimum supported version of PostgreSQL, if it is used. |
DRUPAL_MINIMUM_PHP | modules/ system/ system.module | Minimum supported version of PHP. |
DRUPAL_MINIMUM_PHP_MEMORY_LIMIT | modules/ system/ system.module | Minimum recommended value of PHP memory_limit. |
DRUPAL_MIN_HASH_COUNT | includes/ password.inc | The minimum allowed log2 number of iterations for password stretching. |