Mercurial > defr > drupal > core
comparison modules/aggregator/aggregator.pages.inc @ 11:589fb7c02327 6.5
Drupal 6.5
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:32:19 +0100 |
parents | c1f4ac30525a |
children |
comparison
equal
deleted
inserted
replaced
10:6f15c9d74937 | 11:589fb7c02327 |
---|---|
1 <?php | 1 <?php |
2 // $Id: aggregator.pages.inc,v 1.12 2008/01/08 10:35:40 goba Exp $ | 2 // $Id: aggregator.pages.inc,v 1.12.2.1 2008/08/16 21:13:48 dries Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * @file | 5 * @file |
6 * User page callbacks for the aggregator module. | 6 * User page callbacks for the aggregator module. |
7 */ | 7 */ |
58 * If there are two arguments then $arg2 is $category. | 58 * If there are two arguments then $arg2 is $category. |
59 * @return | 59 * @return |
60 * The items HTML. | 60 * The items HTML. |
61 */ | 61 */ |
62 function aggregator_page_category($arg1, $arg2 = NULL) { | 62 function aggregator_page_category($arg1, $arg2 = NULL) { |
63 drupal_set_breadcrumb(array_merge(drupal_get_breadcrumb(), array(l(t('Categories'), 'aggregator/categories')))); | |
64 // If there are two arguments then we are called as a form, $arg1 is | 63 // If there are two arguments then we are called as a form, $arg1 is |
65 // $form_state and $arg2 is $category. Otherwise, $arg1 is $category. | 64 // $form_state and $arg2 is $category. Otherwise, $arg1 is $category. |
66 $category = is_array($arg2) ? $arg2 : $arg1; | 65 $category = is_array($arg2) ? $arg2 : $arg1; |
67 | 66 |
68 drupal_add_feed(url('aggregator/rss/'. $category['cid']), variable_get('site_name', 'Drupal') .' '. t('aggregator - @title', array('@title' => $category['title']))); | 67 drupal_add_feed(url('aggregator/rss/'. $category['cid']), variable_get('site_name', 'Drupal') .' '. t('aggregator - @title', array('@title' => $category['title']))); |