You are here

function editablefields_inline_text_button in Editable Fields 6.3

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.

2 calls to editablefields_inline_text_button()
editablefields_inline in plugins/responders/inline.inc
Menu callback.
theme_editablefields_inline in plugins/responders/inline.inc
Default theme implementation for editablefields_modal.

File

plugins/responders/inline.inc, line 255
Editablefields CTools modal plugin.

Code

function editablefields_inline_text_button($text, $dest, $alt, $class = '') {
  return ctools_ajax_text_button($text, $dest, $alt, $class, 'editablefields-use-inline');
}