You are here

function salesforce_log_run_page in Salesforce Suite 5

run a logged cron task

1 string reference to 'salesforce_log_run_page'
salesforce_menu in ./salesforce.module
Implementation of hook_menu().

File

./salesforce.module, line 411
Original Creator, Maintainer & Developer: Steve McKenzie (http://drupal.org/user/45890) Drupal and Salesforce.com (mainly only working with contacts / leads but can be extended to do anything the salesforce API version 6 can do) Current…

Code

function salesforce_log_run_page() {
  $sid = arg(4);
  if (is_numeric($sid)) {
    $result = _salesforce_cron_run($sid);
    if ($result) {
      drupal_set_message(t('the logged task completed successfully'));
    }
    else {
      drupal_set_message(t('the logged task failed to complete'), 'error');
    }
  }
  drupal_goto('admin/salesforce');
}