You are here

function theme_panels_imagebutton in Panels 5.2

Same name and namespace in other branches
  1. 5 panels.module \theme_panels_imagebutton()

Theme our image button.

File

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

Code

function theme_panels_imagebutton($element) {
  return '<input type="image" ' . 'class="form-' . $element['#button_type'] . ' ' . $element['#class'] . '" ' . 'name="' . $element['#name'] . '" ' . 'value="' . check_plain($element['#default_value']) . '" ' . 'id="' . $element['#id'] . '" ' . drupal_attributes($element['#attributes']) . ' src="' . base_path() . $element['#image'] . '" ' . 'alt="' . $element['#title'] . '" ' . 'title="' . $element['#title'] . '" ' . "/>\n";
}