function panels_ajax_text_button in Panels 6.2
Note: 'html' => true so be sure any text is vetted! Chances are these kinds of buttons will not use user input so this is a very minor concern. ajax.inc
2 calls to panels_ajax_text_button()
- panels_add_content in includes/
display-edit.inc - panels_ajax_image_button in includes/
ajax.inc - @todo -- move this somewhere more useful. ajax.inc
File
- includes/
ajax.inc, line 87 - Miscellaneous AJAX helper routines
Code
function panels_ajax_text_button($text, $dest, $alt, $class = '') {
return l($text, $dest, array(
'html' => TRUE,
'attributes' => array(
'class' => "panels-ajax-link {$class}",
'title' => $alt,
'alt' => $alt,
),
));
}