function shortcode_basic_tags_shortcode_random_tip in Shortcode 7.2
Provides tip callback for random Shortcode.
1 string reference to 'shortcode_basic_tags_shortcode_random_tip'
- shortcode_basic_tags_shortcode_info in shortcode_basic_tags/
shortcode_basic_tags.module - Implements hook_shortcode_info().
File
- shortcode_basic_tags/
shortcode_basic_tags.module, line 984 - Provides basic ShortCodes (as examples).
Code
function shortcode_basic_tags_shortcode_random_tip($format, $long) {
$output = array();
$output[] = '<p><strong>[random (length="8") /]</strong>';
if ($long) {
$output[] = t('Inserts a random text with the given length.') . '</p>';
$output[] = '<p> </p>';
}
else {
$output[] = t('Inserts a random text with the given length.') . '</p>';
}
return implode(' ', $output);
}