You are here

function _salesforce_log_manage in Salesforce Suite 5

2 calls to _salesforce_log_manage()
salesforce_log_manage_page in ./salesforce.module
delete or disable a logged item
_salesforce_cron_run in ./salesforce.module
run a logged cron item

File

./salesforce.module, line 590
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_manage($sid, $disable = true, $enable = false) {
  if ($disable) {
    db_query("UPDATE {salesforce_log} SET status = 0 WHERE sid = %d", $sid);
  }
  else {
    if ($enable) {
      db_query("UPDATE {salesforce_log} SET status = 1 WHERE sid = %d", $sid);
    }
    else {
      db_query("DELETE FROM {salesforce_log} WHERE sid = %d", $sid);
    }
  }
}