/[drupal]/contributions/modules/adminrss/adminrss.module
ViewVC logotype

Diff of /contributions/modules/adminrss/adminrss.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2, Fri Jun 30 05:05:23 2006 UTC revision 1.2.2.1, Mon Nov 12 22:05:49 2007 UTC
# Line 9  Line 9 
9   * This module was made a lot easier for me by both adminblock.module and commentrss.module.   * This module was made a lot easier for me by both adminblock.module and commentrss.module.
10   * Thanks to both Fredrik Jonsson and Gabor Hojtsy.   * Thanks to both Fredrik Jonsson and Gabor Hojtsy.
11   */   */
12    
13  define('ADMINRSS_KEY', variable_get('adminrss_key',NULL));  define('ADMINRSS_KEY', variable_get('adminrss_key',NULL));
14  //define('ADMINRSS_KEY', 'test');  //define('ADMINRSS_KEY', 'test');
15    
16  /**  /**
17   * Implementation of hook_help().   * Implementation of hook_help().
18   */   */
19    
20  function adminrss_help($section) {  function adminrss_help($section) {
21    switch ($section) {    switch ($section) {
22  //    case 'admin/help#aggregator':  //    case 'admin/help#aggregator':
# Line 120  function adminrss_format_feed($items, $c Line 120  function adminrss_format_feed($items, $c
120    global $base_url;    global $base_url;
121    
122    $languages = (function_exists('locale') ? locale_supported_languages() : array('name' => array('en' => 'English')));    $languages = (function_exists('locale') ? locale_supported_languages() : array('name' => array('en' => 'English')));
123      $language_names = array_keys($languages['name']);
124    
125    $channel_defaults = array(    $channel_defaults = array(
126      'version'     => '0.92',      'version'     => '0.92',
127      'title'       => variable_get('site_name', 'drupal') . ' - ' . t('Comments'),      'title'       => variable_get('site_name', 'drupal') . ' - ' . t('Comments'),
128      'link'        => $base_url,      'link'        => $base_url,
129      'description' => t('Comments'),      'description' => t('Comments'),
130      'language'    => (($key = reset(array_keys($languages['name']))) ? $key : 'en')      'language'    => (($key = reset($language_names)) ? $key : 'en'),
131    );    );
132    $channel = array_merge($channel_defaults, $channel);    $channel = array_merge($channel_defaults, $channel);
133    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.2.2.1

  ViewVC Help
Powered by ViewVC 1.1.2