function panels_page_custom_css in Panels 6.2
Add custom css entered on the configuration form, if any. Filter it first.
Parameters
$panel_page:
2 calls to panels_page_custom_css()
- panels_page_render_page_form in panels_page/
panels_page.render.inc - Execute a panels_page render with an embedded form.
- panels_page_render_page_normal in panels_page/
panels_page.render.inc - Execute a normal (i.e., non-form embedded) panels_page render.
File
- panels_page/
panels_page.render.inc, line 141 - panels_page.render.inc Functions utilized during the panels_page render process. On any given page request, this file is lazy-loaded by panels_page itself only after it has been absolutely verified that a panels_page render should be done.
Code
function panels_page_custom_css($panel_page) {
if ($panel_page->css) {
panels_load_include('panels_page.css_filter', 'panels_page/');
$css = panels_page_filter_css(panels_page_disassemble_css($panel_page->css));
// If the custom css didn't survive filtering, don't bother adding it.
if (!empty($css)) {
drupal_set_html_head("<style type=\"text/css\" media=\"all\">" . panels_page_compress_css($css) . "</style>\n");
}
}
}