Changes between Version 3 and Version 4 of Drupal HowTo Write Cron Tasks for CiviCRM
- Timestamp:
- 11/18/13 14:54:31 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Drupal HowTo Write Cron Tasks for CiviCRM
v3 v4 3 3 Certain things in CiviCRM need to happen on an automated basis. The most straightforward way of acheiving this is via drupal's fake cron process, which is well documented on the drupal site. Our drupal cron configuration is set to run hourly, and is triggered when the timer exceeds that limit AND a page somewhere on the drupal site is accessed. 4 4 5 To create a Drupal cron task, implement a cron hook function in a Drupal module. This should be called {{{{MODULE_NAME}_cron()}}}. To ensure that CiviCRM is correctly initialised, the method should first run the function 6 7 {{{ 8 #!php 9 civicrm_initialize(); 10 }}} 11 5 12 == GENVASC 'mark as available' activity == 6 13 7 The code is located in the 14 The code is located in the ''genvasc_labels'' module and uses the CiviCRM API. The process is as follows: 15 16 1. Select all the cases for the 8 17 9 18 == Note regarding Cron System ==