function _popup_title_to_key in Popup 7
Same name and namespace in other branches
- 8 includes/popup.util.inc \_popup_title_to_key()
- 7.x includes/popup.util.inc \_popup_title_to_key()
- 6.x includes/popup.util.inc \_popup_title_to_key()
Converts a title to a machine readable key
4 calls to _popup_title_to_key()
- popup_element in includes/
popup.api.inc - Renders a popup elements' HTML
- popup_preprocess_popup_element in ./
popup.module - Popup element preprocessor
- popup_theme in ./
popup.module - Implementation of hook_theme
- _popup_menuelement in includes/
popup.util.inc - Recursively generates popup menus
File
- includes/
popup.util.inc, line 84
Code
function _popup_title_to_key($title) {
return strtolower(preg_replace('/[^a-zA-Z0-9]/', '_', $title));
}