function aggregator_styleguide in Style Guide 7
Implements hook_styleguide().
File
- modules/
aggregator.inc, line 6
Code
function aggregator_styleguide() {
$items = array();
$items['aggregator_item'] = array(
'title' => t('Aggregator item'),
'theme' => 'aggregator_item',
'variables' => array(
'item' => (object) array(
'iid' => 1,
'fid' => 1,
'title' => styleguide_word(10, 'ucfirst'),
'link' => 'http://drupal.org/project/styleguide',
'author' => styleguide_word(2, 'ucfirst'),
'description' => styleguide_paragraph(2),
'timestamp' => time() - 3600,
'guid' => '',
'ftitle' => styleguide_word(3, 'ucfirst'),
'flink' => 'http://drupal.org/planet/rss.xml',
'categories' => array(
(object) array(
'title' => styleguide_word(3),
'cid' => 1,
),
),
),
),
'group' => t('Aggregator'),
);
$items['aggregator_summary_item'] = array(
'title' => t('Aggregator summary item'),
'theme' => 'aggregator_summary_item',
'variables' => array(
'item' => (object) array(
'title' => styleguide_word(10, 'ucfirst'),
'link' => 'http://drupal.org/project/styleguide',
'timestamp' => time() - 3600,
),
),
'group' => t('Aggregator'),
);
return $items;
}