Same name and namespace in other branches
  1. 4.7.x includes/bootstrap.inc \DRUPAL_ANONYMOUS_RID
  2. 5.x includes/bootstrap.inc \DRUPAL_ANONYMOUS_RID
  3. 6.x includes/bootstrap.inc \DRUPAL_ANONYMOUS_RID
  4. 8.9.x core/includes/bootstrap.inc \DRUPAL_ANONYMOUS_RID

Role ID for anonymous users; should match what's in the "role" table.

40 uses of DRUPAL_ANONYMOUS_RID
BookTestCase::testBookExport in modules/book/book.test
Tests book export ("printer-friendly version") functionality.
BookTestCase::testBookNavigationBlock in modules/book/book.test
Tests the functionality of the book navigation block.
BookTestCase::testNavigationBlockOnAccessModuleEnabled in modules/book/book.test
Tests the book navigation block when an access module is enabled.
CommentAnonymous::testAnonymous in modules/comment/comment.test
Test anonymous comment functionality.
CommentApprovalTest::testApprovalAdminInterface in modules/comment/comment.test
Test comment approval functionality through admin/content/comment.

... See full list

File

includes/bootstrap.inc, line 162
Functions that need to be loaded on every Drupal request.

Code

define('DRUPAL_ANONYMOUS_RID', 1);