You are here

function panels_print_layout_icon in Panels 8.3

Same name and namespace in other branches
  1. 5.2 panels.module \panels_print_layout_icon()
  2. 6.3 panels.module \panels_print_layout_icon()
  3. 6.2 panels.module \panels_print_layout_icon()
  4. 7.3 panels.module \panels_print_layout_icon()

Related topics

File

./panels.module, line 876
panels.module

Code

function panels_print_layout_icon($id, $layout, $title = NULL) {
  ctools_add_css('panels_admin', 'panels');
  $file = $layout['path'] . '/' . $layout['icon'];
  return theme('panels_layout_icon', array(
    'id' => $id,
    'image' => theme('image', array(
      'path' => $file,
      'alt' => strip_tags($layout['title']),
      'title' => strip_tags($layout['description']),
    )),
    'title' => $title,
  ));
}