function views_megarow_image_button in Views Megarow 7
Render an image as a button link. This will automatically apply an AJAX class to the link and add the appropriate javascript to make this happen.
Parameters
$image: The path to an image to use that will be sent to theme('image') for rendering.
$dest: The destination of the link.
$alt: The alt text of the link.
$class: Any class to apply to the link. @todo this should be a options array.
File
- ./
views_megarow.module, line 400
Code
function views_megarow_image_button($image, $dest, $alt, $class = '') {
return ctools_ajax_text_button(theme('image', array(
'path' => $image,
)), $dest, $alt, $class, 'views-megarow-open');
}