| 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: |
| 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? |
| 128 |
); |
); |
| 129 |
} |
} |
| 130 |
} |
} |
|
else { |
|
|
drupal_add_css(drupal_get_path('module', 'copyright') .'/copyright.css'); |
|
|
} |
|
| 131 |
|
|
| 132 |
return $items; |
return $items; |
| 133 |
} |
} |
| 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)), |
| 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 |
|
|