function editablefields_inline_link_text in Editable Fields 6.3
2 calls to editablefields_inline_link_text()
- editablefields_inline_form_submit in plugins/
responders/ inline.inc - Submit handler for fields.
- theme_editablefields_inline in plugins/
responders/ inline.inc - Default theme implementation for editablefields_modal.
File
- plugins/
responders/ inline.inc, line 222 - Editablefields CTools modal plugin.
Code
function editablefields_inline_link_text($field, $item, $formatter_name, $node) {
// Other module's formatters might be doing something just as exotic
// as we are but we can only allow tags that won't mess with our button.
// We use filter_xss just for its html stripping magic.
$allowed_tags = array(
'img',
'div',
'span',
'em',
'strong',
'cite',
'ul',
'ol',
'li',
'dl',
'dt',
'dd',
);
$output = filter_xss(content_format($field, $item, $formatter_name, $node), $allowed_tags);
if ($output) {
return $output;
}
else {
// TODO: "Not set" is not necessarily true. For instance, CCK returns
// an empty string for files that are not "listed".
return t('Not set');
}
}