| 1 |
<?php |
<?php |
| 2 |
// $Id: copyright.module,v 1.13.4.23 2007/06/17 16:18:27 robrechtj Exp $ |
// $Id: copyright.module,v 1.13.4.24 2007/06/18 06:28:24 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: |
| 115 |
'type' => MENU_CALLBACK, |
'type' => MENU_CALLBACK, |
| 116 |
'access' => user_access('administer copyright'), |
'access' => user_access('administer copyright'), |
| 117 |
); |
); |
|
|
|
|
$paths = copyright_get_license_local_paths(); |
|
|
foreach ($paths as $path) { |
|
|
$items[] = array( |
|
|
'path' => $path->source_url, |
|
|
'title' => t($path->name), |
|
|
'type' => MENU_CALLBACK, |
|
|
'callback' => 'copyright_show_license', |
|
|
'callback arguments' => array($path->cpyid), |
|
|
'access' => user_access('access content'), |
|
|
); |
|
|
} |
|
| 118 |
} |
} |
| 119 |
|
|
| 120 |
return $items; |
return $items; |