You are here

function _popup_title_to_key in Popup 8

Same name and namespace in other branches
  1. 7 includes/popup.util.inc \_popup_title_to_key()
  2. 7.x includes/popup.util.inc \_popup_title_to_key()
  3. 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));
}