| 1 |
<?php |
<?php |
| 2 |
// $Id: creativecommons.module,v 1.9.2.60 2009/09/01 01:31:50 turadg Exp $ |
// $Id: creativecommons.module,v 1.9.2.61 2009/10/13 18:37:54 balleyne Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 207 |
'#description' => t('Attach machine-readable license information as RDF/XML within the HTML of a node to let visitors know what license applies to your works.'), |
'#description' => t('Attach machine-readable license information as RDF/XML within the HTML of a node to let visitors know what license applies to your works.'), |
| 208 |
); |
); |
| 209 |
|
|
| 210 |
|
// TODO: 2.x license text for all licenses should be configurable |
| 211 |
|
$form['creativecommons_display']['creativecommons_arr_text'] = array( |
| 212 |
|
'#type' => 'textarea', |
| 213 |
|
'#title' => t('All Rights Reserved Text'), |
| 214 |
|
'#default_value' => variable_get('creativecommons_arr_text', NULL), |
| 215 |
|
'#cols' => 60, |
| 216 |
|
'#rows' => 3, |
| 217 |
|
'#description' => t('This text will be displayed for content which has no license specified (i.e. all rights reserved).'), |
| 218 |
|
'#attributes' => NULL, |
| 219 |
|
'#required' => NULL, |
| 220 |
|
); |
| 221 |
|
|
| 222 |
// This if should only wrap the search option when other options are included here |
// This if should only wrap the search option when other options are included here |
| 223 |
if (module_exists('search')) { |
if (module_exists('search')) { |
| 224 |
$form['creativecommons_advanced'] = array( |
$form['creativecommons_advanced'] = array( |
| 305 |
$form['creativecommons_default_license']['creativecommons_default_jurisdiction'] = array( |
$form['creativecommons_default_license']['creativecommons_default_jurisdiction'] = array( |
| 306 |
'#type' => 'select', |
'#type' => 'select', |
| 307 |
'#title' => t('Default jurisdiction'), |
'#title' => t('Default jurisdiction'), |
| 308 |
'#description' => t($q['jurisdiction']['description']), |
i '#description' => t($q['jurisdiction']['description']), |
| 309 |
'#options' => creativecommons_format_jurisdiction_array($q['jurisdiction']['answers']), |
'#options' => creativecommons_format_jurisdiction_array($q['jurisdiction']['answers']), |
| 310 |
'#default_value' => variable_get('creativecommons_default_jurisdiction', ''), |
'#default_value' => variable_get('creativecommons_default_jurisdiction', ''), |
| 311 |
); |
); |