You are here

function _popup_title_to_key in Popup 6.x

Same name and namespace in other branches
  1. 8 includes/popup.util.inc \_popup_title_to_key()
  2. 7 includes/popup.util.inc \_popup_title_to_key()
  3. 7.x includes/popup.util.inc \_popup_title_to_key()

Converts a title to a machine readable key

3 calls to _popup_title_to_key()
popup_element in includes/popup.api.inc
Renders a popup elements' HTML
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 106

Code

function _popup_title_to_key($title) {
  return strtolower(preg_replace('/[^a-zA-Z0-9]/', '_', $title));
}