Drupal 7 number quizzes

Here are quizzes on magical numbers related with Drupal 7.

How many numbers do you know of them? If you already know all of them, you're an awesome Drupal master certified by hgoto (me)! (But there's no certificate :) )

21 (days)

The default session expiration time. After 21 days (actually 2,000,000 seconds) since the session was created, user sessions expire.

ini_set('session.cookie_lifetime', 2000000);

6 (hours)

The time limit for temporary files managed by Drupal. When the first cron runs after this time limit, temporary files are deleted.

define('DRUPAL_MAXIMUM_TEMP_FILE_AGE', 21600);

240 (seconds)

The default max execution time limit for Drupal cron.

32 (characters)

The max length of field machine names.

30 (days)

The days nodes are recognized as "New". In this duration, created nodes are marked "New" by node history function.

define('NODE_NEW_LIMIT', REQUEST_TIME - 30 * 24 * 60 * 60);

60 (characters)

The max length of user names.

254 (characters)

The max length of user email addresses.

reference:

27 (characters)

The max length of menu item names.

define('MENU_MAX_MENU_NAME_LENGTH_UI', 27);

32 (MB)

The minimum memory size Drupal 7 can run.

64 (MB)

The minimum memory size Drupal 7 tests with Simpletest can run.

5.2.4 (version)

The minimum PHP version Drupal 7 can run.

9 (depth)

Max depth of menu tree (menu items tree).

8 (types)

The Number of Bootsrap phases. Drupal 7 has 8 phases.

define('DRUPAL_BOOTSTRAP_CONFIGURATION', 0);
define('DRUPAL_BOOTSTRAP_PAGE_CACHE', 1);
define('DRUPAL_BOOTSTRAP_DATABASE', 2);
define('DRUPAL_BOOTSTRAP_VARIABLES', 3);
define('DRUPAL_BOOTSTRAP_SESSION', 4);
define('DRUPAL_BOOTSTRAP_PAGE_HEADER', 5);
define('DRUPAL_BOOTSTRAP_LANGUAGE', 6);
define('DRUPAL_BOOTSTRAP_FULL', 7);

15 (times)

The default password hash count. Drupal 7 uses hash on passwords 15 times. You can configure this value for security improvement or performance improvement. The minimum number is 7 and maximum number is 30.

define('DRUPAL_HASH_COUNT', 15);
define('DRUPAL_MIN_HASH_COUNT', 7);
define('DRUPAL_MAX_HASH_COUNT', 30);
define('DRUPAL_HASH_LENGTH', 55);

1/100 (ratio)

GC probability for sessions. Drupal 7 uses the PHP garbage collection mechanism and sessions are cleared on 1 of 100 requests.

ini_set('session.gc_probability', 1);
ini_set('session.gc_divisor', 100);

[-100, 0, 100]

The default CSS/JS group weights.

define('JS_LIBRARY', -100);
define('JS_DEFAULT', 0);
define('JS_THEME', 100);

186

The number of languages Drupal provides by default.

250

The number of countries/regions Drupal provides by default.

That's all. How many of them did you know? I'm glad if you enjoyed it :)