You are here

function path_redirect_condition_path_has_redirect in Path redirect 5

Condition implementation: Check if the path has a redirect

File

./path_redirect_workflow.inc, line 28
Workflow-ng integration for the path_redirect module

Code

function path_redirect_condition_path_has_redirect($settings, &$arguments, &$log) {
  extract(workflow_ng_token_replace_all(array(
    'path',
  ), $settings, $arguments, $log));
  return (bool) path_redirect_load(NULL, $path);
}