function lexicon_filter_tips in Lexicon 6
File
- ./
lexicon.module, line 375 - Lexicon is used to create lists of terms and definitions to use on a website and optionally mark them in the content with an indicator.
Code
function lexicon_filter_tips($delta, $format, $long = FALSE) {
$block_tags = explode(' ', variable_get("lexicon_blocking_tags", 'abbr acronym'));
$standard_blocks = array(
'a',
);
foreach ($standard_blocks as $tag) {
if (!in_array($tag, $block_tags)) {
$block_tags[] = check_plain($tag);
}
}
foreach ($block_tags as $key => $tag) {
if ($tag[0] == '.') {
$block_tags[$key] = 'span class="' . check_plain(drupal_substr($tag, 1)) . '"';
}
}
sort($block_tags, SORT_STRING);
$blocked = implode(', ', $block_tags);
$more = ' ' . t('Additionally, these HTML elements will not be scanned: %blocked.', array(
'%blocked' => $blocked,
));
if ($long) {
return t('The Lexicon module will automatically mark terms that have been defined in the lexicon vocabulary with links to their descriptions. These marks depend on the settings and may be a superscript character or an icon, or the term may be turned into an acronym, cite, or abbreviation. If there are certain phrases or sections of text that should be excluded from lexicon marking and linking, use the special markup, [no-lexicon] ... [/no-lexicon].') . $more;
}
else {
return t('Lexicon terms will be automatically marked with links to their descriptions. If there are certain phrases or sections of text that should be excluded from lexicon marking and linking, use the special markup, [no-lexicon] ... [/no-lexicon].') . $more;
}
}