function shortcode_basic_tags_shortcode_clear_tip in Shortcode 6
Same name and namespace in other branches
- 7.2 shortcode_basic_tags/shortcode_basic_tags.module \shortcode_basic_tags_shortcode_clear_tip()
- 7 shortcode_basic_tags/shortcode_basic_tags.module \shortcode_basic_tags_shortcode_clear_tip()
File
- shortcode_basic_tags/
shortcode_basic_tags.module, line 328
Code
function shortcode_basic_tags_shortcode_clear_tip($format, $long) {
$output = '';
if (shortcode_shortcode_is_enabled('clear', $format)) {
$output = '<p><strong>[clear (class="additional class"|id=item id|type=div,d,span,s)]text[/clear]</strong>';
if ($long) {
$output .= ' Insert a html item (type parameter = div or span) around the given text.</p>';
$output .= '<p>Additional class names can be added by the <em>class</em> parameter. Id parameter gives the html an unique css id.</p>';
$output .= '<p> </p>';
}
else {
$output .= ' Insert a html item (div or span) around the given text.</p>';
}
}
return $output;
}