function _popup_title_to_key in Popup 8
Same name and namespace in other branches
- 7 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
2 calls to _popup_title_to_key()
- popup_element in includes/
popup.api.inc - Renders a popup elements' HTML
- _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));
}