You are here

aggregator.inc in Style Guide 7

File

modules/aggregator.inc
View source
<?php

/**
 * Implements hook_styleguide().
 */
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;
}

Functions

Namesort descending Description
aggregator_styleguide Implements hook_styleguide().