function site_alert_page_content_type_render in Site Alert 7
Callback for the 'site_alert' content type.
Outputs the site alert for the current page.
1 string reference to 'site_alert_page_content_type_render'
- site_alert_page.inc in plugins/
content_types/ site_alert_page.inc - Plugin to handle the 'site_alert' content type.
File
- plugins/
content_types/ site_alert_page.inc, line 28 - Plugin to handle the 'site_alert' content type.
Code
function site_alert_page_content_type_render($subtype, $conf, $panel_args) {
drupal_add_js(drupal_get_path('module', 'site_alert') . '/site_alert.js');
drupal_add_js(array(
'siteAlert' => array(
'timeout' => variable_get('site_alert_timeout', SITE_ALERT_TIMEOUT_DEFAULT),
),
), 'setting');
$block = new stdClass();
$block->content = array(
'#theme' => 'site_alert_wrapper',
);
return $block;
}