function theme_popup_ahah_placeholder in Popup 7
Same name and namespace in other branches
- 8 includes/popup.theme.inc \theme_popup_ahah_placeholder()
- 7.x includes/popup.theme.inc \theme_popup_ahah_placeholder()
- 6.x popup.module \theme_popup_ahah_placeholder()
1 theme call to theme_popup_ahah_placeholder()
- popup_element in includes/
popup.api.inc - Renders a popup elements' HTML
File
- includes/
popup.theme.inc, line 66
Code
function theme_popup_ahah_placeholder($variables) {
$hash = popup_cache_attributes($variables['attributes']);
$type = $variables['type'];
$extra = isset($variables['attributes']['ajax_extra']) ? '/' . $variables['attributes']['ajax_extra'] : '';
$url = (variable_get('clean_url') ? '/ahah/popup/' : '?q=/ahah/popup/') . $type . '/' . $hash . $extra;
return '<div class="popup-ahah-placeholder">' . t('Loading') . '<a class="ahah-path" href="' . $url . '"></a>' . '</div><noscript><p class="error">' . t('Please enable Javascript to be able to view this content.') . '</p></noscript>';
}