You are here

function panels_print_layout_link in Panels 6.3

Same name and namespace in other branches
  1. 8.3 panels.module \panels_print_layout_link()
  2. 5.2 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

Related topics

1 call to panels_print_layout_link()
panels_common_print_layout_links in includes/common.inc
Print a selector of layouts, each linked to the next step.

File

./panels.module, line 1083
panels.module

Code

function panels_print_layout_link($id, $layout, $link, $options = array()) {
  if (isset($options['query']['q'])) {
    unset($options['query']['q']);
  }
  ctools_add_css('panels_admin', 'panels');
  $file = $layout['path'] . '/' . $layout['icon'];
  $image = l(theme('image', $file), $link, array(
    'html' => true,
  ) + $options);
  $title = l($layout['title'], $link, $options);
  return theme('panels_layout_link', $title, $id, $image, $link);
}