You are here

function _popup_key_to_title in Popup 7

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

Converts a machine readable key into a title

2 string references to '_popup_key_to_title'
popup_filter_insert_form in modules/popup_filter/includes/popup_filter.admin.inc
_popup_ui_form_options in modules/popup_ui/includes/popup_ui.admin.inc

File

includes/popup.util.inc, line 75

Code

function _popup_key_to_title($key) {
  return ucwords(preg_replace('/[^a-zA-Z]/', ' ', $key));
}