You are here

function _acquia_purge_deprecated in Acquia Purge 7

Log about a deprecated helper being used.

Parameters

string $new: Suggested code replacement.

string|null $caller: Caller that is deprecated, leave NULL for automatic backtrace lookup.

41 calls to _acquia_purge_deprecated()
AcquiaPurgeService::process in lib/AcquiaPurgeService.php
Process as many items from the queue as the runtime capacity allows.
AcquiaPurgeService::queueItemPath in lib/AcquiaPurgeService.php
DEPRECATED: Filter out the HTTP path from the given queue item object.
acquia_purge_purge_node in ./acquia_purge.deprecated.inc
DEPRECATED: Purge the paths from a node from Varnish.
acquia_purge_purge_path in ./acquia_purge.deprecated.inc
DEPRECATED: queue a path and trigger the UI processor (if not using cron).
acquia_purge_purge_paths in ./acquia_purge.deprecated.inc
DEPRECATED: queue paths and trigger the UI processor (if not using cron).

... See full list

File

./acquia_purge.deprecated.inc, line 23
Deprecated functions.

Code

function _acquia_purge_deprecated($new, $caller = NULL) {
  $msg = "!old() is deprecated, port your code to !new immediately!";
  $backtrace = debug_backtrace();
  if ($caller == NULL) {
    $caller = $backtrace[1]['function'];
  }
  $replacements = array(
    '!old' => $caller,
    '!new' => $new,
  );
  watchdog('acquia_purge', $msg, $replacements, WATCHDOG_WARNING);
}