You are here

function expire_rules_action_flush_url_validation in Cache Expiration 7.2

Process value submitted by user in Rules settings.

1 string reference to 'expire_rules_action_flush_url_validation'
expire_rules_action_info in ./expire.rules.inc
Implements hook_rules_action_info().

File

./expire.rules.inc, line 63
Integration with the Rules module.

Code

function expire_rules_action_flush_url_validation($action) {

  // If user uses PHP values in his input, some line ending might be lost.
  // To avoid this bug we should add a whitespace to the end of each value.
  $urls =& $action->settings['urls'];
  $url_parts = explode("\r\n", $urls);
  foreach ($url_parts as &$url) {
    $url = trim($url) . ' ';
  }
  $urls = implode("\r\n", $url_parts);
}