function ctools_modal_text_button in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 includes/modal.inc \ctools_modal_text_button()
Render text as a link. This will automatically apply an AJAX class to the link and add the appropriate javascript to make this happen.
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.
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.
1 call to ctools_modal_text_button()
- ctools_ajax_sample_page in ctools_ajax_sample/
ctools_ajax_sample.module - Page callback to display links and render a container for AJAX stuff.
File
- includes/
modal.inc, line 172 - Implement a modal form using AJAX.
Code
function ctools_modal_text_button($text, $dest, $alt, $class = '') {
return ctools_ajax_text_button($text, $dest, $alt, $class, 'ctools-use-modal');
}