You are here

function _statspro_path_cleaner in Statistics Pro 6.2

Returns a string array with cleaned paths.

Parameters

string $original_paths:

Return value

array String array with cleaned paths.

2 calls to _statspro_path_cleaner()
statspro_path_aggregator_add_form_submit in ./statspro_path_aggregated.inc
Implementation of submit() for the statspro_path_aggregator_add_form form.
statspro_path_aggregator_edit_form_submit in ./statspro_path_aggregated.inc
Implementation of submit() for the statspro_path_aggregator_edit_form form.

File

./statspro_path_aggregated.inc, line 234

Code

function _statspro_path_cleaner($original_paths) {
  $paths = explode("\n", $original_paths);
  $clean_paths = array();
  foreach ($paths as $path) {
    $path = _statspro_clean_path($path);
    if ($path) {
      $clean_paths[] = $path;
    }
  }
  return $clean_paths;
}