You are here

function features_clean_title in Features 7.2

Returns a lowercase clean string with only letters, numbers and dashes.

Parameters

string $str: Menu link title to be cleaned.

Return value

string Sanitized menu link title.

3 calls to features_clean_title()
features_menu_link_load in includes/features.menu.inc
Loads a menu link by its (features-specific) identifier.
menu_links_features_export_render in includes/features.menu.inc
Implements hook_features_export_render().
menu_links_features_identifier in includes/features.menu.inc
Callback for generating the menu link exportable identifier.

File

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

Code

function features_clean_title($str) {
  return strtolower(preg_replace_callback('/(\\s)|([^a-zA-Z\\-0-9])/i', '_features_clean_title', $str));
}