function styleguide_sentence in Style Guide 6
Same name and namespace in other branches
- 7 styleguide.module \styleguide_sentence()
Generate a random sentence.
2 calls to styleguide_sentence()
- styleguide_form in ./
styleguide.module - Sample form, showing all elements.
- styleguide_styleguide in ./
styleguide.styleguide.inc - Implements hook_styleguide().
File
- ./
styleguide.module, line 347
Code
function styleguide_sentence() {
$graph = strip_tags(styleguide_paragraph());
$explode = explode('.', $graph);
$rand = array_rand($explode);
return trim($explode[$rand]) . '.';
}