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

Diff of /contributions/modules/copyright/copyright.module

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

revision 1.13.4.23, Sun Jun 17 16:18:27 2007 UTC revision 1.13.4.24, Mon Jun 18 06:28:24 2007 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: copyright.module,v 1.13.4.22 2007/06/17 16:16:37 robrechtj Exp $  // $Id: copyright.module,v 1.13.4.23 2007/06/17 16:18:27 robrechtj Exp $
3    
4  /** Copyright (c) 2004 Matthew Schwartz  <matt at mattschwartz dot net>  /** Copyright (c) 2004 Matthew Schwartz  <matt at mattschwartz dot net>
5      Contributors:      Contributors:
# Line 36  Line 36 
36   * - proofread and maybe extend documentation (hook_help())   * - proofread and maybe extend documentation (hook_help())
37   * - figure out the right way to do 'view license' - this get_local_paths() looks a bit funny   * - figure out the right way to do 'view license' - this get_local_paths() looks a bit funny
38   * - does it makes sense to have a 'admin/configure/view/$cpyid' page for all copyrights?   * - does it makes sense to have a 'admin/configure/view/$cpyid' page for all copyrights?
  * - do we really need theme_add_css() in hook_menu()? Looks to me we could add it to hook_block()  
39   * - node copyright block, to be displayed in 'content' region for 'node' pages   * - node copyright block, to be displayed in 'content' region for 'node' pages
40   * - are there other content types (eg the 'container' from category.module) that actually warrant the   * - are there other content types (eg the 'container' from category.module) that actually warrant the
41   *   same treatment as book pages?   *   same treatment as book pages?
# Line 129  function copyright_menu($may_cache) { Line 128  function copyright_menu($may_cache) {
128        );        );
129      }      }
130    }    }
   else {  
     drupal_add_css(drupal_get_path('module', 'copyright') .'/copyright.css');  
   }  
131    
132    return $items;    return $items;
133  }  }
# Line 157  function copyright_block($op = 'list', $ Line 153  function copyright_block($op = 'list', $
153      }      }
154    
155      if ($license) {      if ($license) {
156          drupal_add_css(drupal_get_path('module', 'copyright') .'/copyright.css');
157        return array(        return array(
158          'subject' => t('Copyright'),          'subject' => t('Copyright'),
159          'content' => theme('copyright_block', copyright_notice($license)),          'content' => theme('copyright_block', copyright_notice($license)),
# Line 514  function copyright_nodeapi(&$node, $op, Line 511  function copyright_nodeapi(&$node, $op,
511              '#value' => theme('copyright_footer', copyright_notice($license, $node, $node_license)),              '#value' => theme('copyright_footer', copyright_notice($license, $node, $node_license)),
512              '#weight' => 10,              '#weight' => 10,
513            );            );
514              drupal_add_css(drupal_get_path('module', 'copyright') .'/copyright.css');
515          }          }
516          break;          break;
517    

Legend:
Removed from v.1.13.4.23  
changed lines
  Added in v.1.13.4.24

  ViewVC Help
Powered by ViewVC 1.1.2