function rules_clean_path

Cleans the given string so it can be used as part of a URL path.

Related topics

1 call to rules_clean_path()
rules_path_clean_replacement_values in ./rules.module
Clean replacements so they are URL friendly.
2 string references to 'rules_clean_path'
rules_path_default_cleaning_method in modules/path.eval.inc
Cleans the given path.
rules_uninstall in ./rules.install
Implements hook_uninstall().

File

modules/path.eval.inc, line 115

Code

function rules_clean_path($path) {
  $function = variable_get('rules_path_cleaning_callback', 'rules_path_default_cleaning_method');
  if (!function_exists($function)) {
    rules_log('An invalid URL path cleaning callback has been configured. Falling back to the default cleaning method.', array(), RulesLog::WARN);
    $function = 'rules_path_default_cleaning_method';
  }
  return $function($path);
}