function _popup_cache_attributes in Popup 6.x
Caches popup attributes for AJAX popups
2 calls to _popup_cache_attributes()
- popup_get_ahah in includes/
popup.util.inc - Fetches dynamic popup content for an ajax call
- theme_popup_ahah_placeholder in ./
popup.module
File
- includes/
popup.util.inc, line 385
Code
function _popup_cache_attributes($cache) {
$attrib_cache = FALSE;
if (!$attrib_cache) {
$attrib_cache = variable_get('popup_ajax_cache', array());
}
if (is_array($cache)) {
$hash = md5(serialize($cache));
$attrib_cache[$hash] = $cache;
variable_set('popup_ajax_cache', $attrib_cache);
return $hash;
}
else {
return $attrib_cache[$cache];
}
}