You are here

function _features_clean_title in Features 7.2

Callback function for preg_replace_callback() to clean a string.

Parameters

string[] $matches: Matches array from preg_replace_callback().

Return value

string Replacement for the given matches.

1 string reference to '_features_clean_title'
features_clean_title in includes/features.menu.inc
Returns a lowercase clean string with only letters, numbers and dashes.

File

includes/features.menu.inc, line 592
Features integration for 'menu' module.

Code

function _features_clean_title($matches) {
  return $matches[1] ? '-' : '';
}