function styleguide_list in Style Guide 7
Same name and namespace in other branches
- 6 styleguide.module \styleguide_list()
Return a simple array of words.
Parameters
$size: The size of the list to return.
Return value
An array of words.
5 calls to styleguide_list()
- hook_styleguide in ./
styleguide.api.php - Register a style guide element for display.
- styleguide_form in ./
styleguide.module - Sample form, showing all elements.
- styleguide_header in ./
styleguide.module - Return a random table header array.
- styleguide_rows in ./
styleguide.module - Return a random table row array.
- styleguide_styleguide in ./
styleguide.styleguide.inc - Implements hook_styleguide().
File
- ./
styleguide.module, line 233
Code
function styleguide_list($size = 5, $words = 3) {
$items = array();
for ($i = 0; $i < $size; $i++) {
$items[] = styleguide_word($words, 'ucfirst');
}
return $items;
}