/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*
* @package CiviCRM_APIv3
* @subpackage API_Job
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id: Contact.php 30879 2010-11-22 15:45:55Z shot $
*
*/
*
*/
function civicrm_api3_job_send_reminder($params) {
+ //note that $params['rowCount' can be overridden by one of the preferred syntaxes ($options['limit'] = x
+ //It's not clear whether than syntax can be passed in via the UI config - but this keeps the pre 4.4.4 behaviour
+ // in that case (ie. makes it unconfigurable via the UI). Another approach would be to set a default of 0
+ // in the _spec function - but since that is a deprecated value it seems more contentious than this approach
+ $params['rowCount'] = 0;
$lock = new CRM_Core_Lock('civimail.job.EmailProcessor');
if (!$lock->isAcquired()) {
return civicrm_api3_create_error('Could not acquire lock, another EmailProcessor process is running');