You are here

function sf_dpm in Salesforce Suite 7.2

Wrapper for Devel's dpm() function. Called in other Salesforce API modules.

1 call to sf_dpm()
sf_entity_export in sf_entity/sf_entity.module
Exports an entity to Salesforce using the specified fieldmap and stores the ID of the Salesforce object for the entity.

File

salesforce_api/salesforce_api.module, line 2069
Defines an API that enables modules to interact with the Salesforce server.

Code

function sf_dpm($var, $show_msg = TRUE, $msg_level = 'error') {
  if (!variable_get('salesforce_api_debug', TRUE)) {
    return;
  }
  if (function_exists('dpm')) {
    dpm($var);
  }
  elseif ($show_msg) {
    drupal_set_message(check_plain(print_r($var, TRUE)), $msg_level);
  }
}