You are here

function ctools_stylizer_print_style_icon in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 includes/stylizer.inc \ctools_stylizer_print_style_icon()

Render the icon for a style base.

1 call to ctools_stylizer_print_style_icon()
ctools_stylizer_edit_style_form_choose in includes/stylizer.inc
Choose which plugin to use to create a new style.

File

includes/stylizer.inc, line 47
Create customized CSS and images from palettes created by user input.

Code

function ctools_stylizer_print_style_icon($plugin, $print_title = TRUE) {
  $file = $plugin['path'] . '/' . $plugin['icon'];
  $title = $print_title ? $plugin['title'] : '';
  return theme('ctools_style_icon', array(
    'image' => theme('image', array(
      'path' => $file,
    )),
    'title' => $title,
  ));
}