You are here

function panels_print_layout_icon in Panels 7.3

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

Panels layout icon function.

3 calls to panels_print_layout_icon()
panels_change_layout in includes/display-layout.inc
Form definition for the display layout converter.
panels_choose_layout in includes/display-layout.inc
Form definition for the display layout editor.
panels_common_allowed_layouts_form in includes/common.inc
The FAPI code for generating an 'allowed layouts' selection form.

File

./panels.module, line 1333
Core functionality for the Panels engine.

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,
  ));
}