You are here

function panels_print_layout_link in Panels 5.2

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

Print the layout link. Sends out to a theme function. @layout

3 calls to panels_print_layout_link()
panels_mini_add_page in panels_mini/panels_mini.module
Handle the add mini panel page.
panels_node_add in panels_node/panels_node.module
panels_page_add_page in panels_page/panels_page.admin.inc
Handle the add panel-page page.

File

./panels.module, line 1202
panels.module Core API for Panels. Provides display editing and rendering capabilities.

Code

function panels_print_layout_link($id, $layout, $link) {
  drupal_add_css(panels_get_path('css/panels_admin.css'));
  $file = panels_get_path($layout['icon'], false, $layout['module']);
  $image = l(theme('image', $file), $link, NULL, NULL, NULL, NULL, TRUE);
  $title = l($layout['title'], $link);
  return theme('panels_layout_link', $title, $id, $image, $link);
}