Changes between Version 3 and Version 4 of Drupal HowTo Write Cron Tasks for CiviCRM


Ignore:
Timestamp:
11/18/13 14:54:31 (10 years ago)
Author:
Richard Bramley
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Drupal HowTo Write Cron Tasks for CiviCRM

    v3 v4  
    33Certain 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.
    44
     5To 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
     9civicrm_initialize();
     10}}}
     11
    512== GENVASC 'mark as available' activity ==
    613
    7 The code is located in the
     14The code is located in the ''genvasc_labels'' module and uses the CiviCRM API.  The process is as follows:
     15
     161. Select all the cases for the
    817
    918== Note regarding Cron System ==