function finder_ui_modal_link in Finder 7.2
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
$text: The text to display as the link.
$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.
3 calls to finder_ui_modal_link()
- finder_ui_element_item in modules/
finder_ui/ includes/ element-item.inc - Finder UI element item.
- finder_ui_field_list in modules/
finder_ui/ includes/ field.inc - Finder UI field list.
- finder_ui_item in modules/
finder_ui/ includes/ item.inc - Finder UI item.
File
- modules/
finder_ui/ includes/ common.inc, line 26 - common.inc
Code
function finder_ui_modal_link($text, $dest, $alt = '', $class = '') {
ctools_include('ajax');
return ctools_ajax_text_button($text, $dest, $alt, $class, 'ctools-use-modal');
}