function styleguide_links in Style Guide 7
Generate a array of random links
Parameters
$url: The internal path or external URL being linked to.
$size: The total number of links to generate .
Return value
A array of random links
1 call to styleguide_links()
- styleguide_styleguide in ./
styleguide.styleguide.inc - Implements hook_styleguide().
File
- ./
styleguide.module, line 654
Code
function styleguide_links($url, $size = 4) {
$links = array();
for ($i = 0; $i < 5; $i++) {
$links[] = array(
'title' => styleguide_word(3),
'href' => $url,
);
}
return $links;
}