function common_test_cron_helper_cron

Same name in other branches
  1. 9 core/modules/system/tests/modules/common_test_cron_helper/common_test_cron_helper.module \common_test_cron_helper_cron()
  2. 8.9.x core/modules/system/tests/modules/common_test_cron_helper/common_test_cron_helper.module \common_test_cron_helper_cron()
  3. 10 core/modules/system/tests/modules/common_test_cron_helper/common_test_cron_helper.module \common_test_cron_helper_cron()
  4. 11.x core/modules/system/tests/modules/common_test_cron_helper/common_test_cron_helper.module \common_test_cron_helper_cron()

Implements hook_cron().

common_test_cron() throws an exception, but the execution should reach this function as well.

See also

common_test_cron()

File

modules/simpletest/tests/common_test_cron_helper.module, line 15

Code

function common_test_cron_helper_cron() {
    variable_set('common_test_cron', 'success');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.