You are here

function rules_path_clean_ctools in Rules 7.2

CTools path cleaning callback.

See also

rules_admin_settings()

Related topics

File

modules/path.eval.inc, line 129
Contains rules integration for the path module needed during evaluation.

Code

function rules_path_clean_ctools($path) {

  // Make use of the CTools cleanstring implementation.
  ctools_include('cleanstring');
  $settings = array(
    'separator' => variable_get('rules_path_replacement_char', '-'),
    'transliterate' => module_exists('transliteration') && variable_get('rules_path_transliteration', TRUE),
    'lower case' => variable_get('rules_path_lower_case', TRUE),
  );
  return ctools_cleanstring($path, $settings);
}