| 1 |
<?php |
<?php |
| 2 |
// $Id: simplenews.module,v 1.76.2.135 2009/09/02 22:24:53 sutharsan Exp $ |
// $Id: simplenews.module,v 1.76.2.136 2009/09/09 13:32:06 sutharsan Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @defgroup simplenews |
* @defgroup simplenews |
| 495 |
'#value' => t('This is the designated simplenews vocabulary.'), |
'#value' => t('This is the designated simplenews vocabulary.'), |
| 496 |
'#weight' => -1, |
'#weight' => -1, |
| 497 |
); |
); |
| 498 |
$form['content_types']['nodes']['#disabled'] = TRUE; |
// We display the current content type settings in a disabled form element |
| 499 |
$form['content_types']['nodes']['#description'] = t('These content type(s) are used as newsletter. They can also be set in !simplenews_settings.', array('!simplenews_settings' => l('Simplenews settings', 'admin/settings/simplenews'))); |
// to the user. The real value passed in the form separately because |
| 500 |
|
// disabled elements do not get saved at submit. |
| 501 |
|
$form['content_types']['display_only'] = $form['content_types']['nodes']; |
| 502 |
|
$form['content_types']['display_only']['#disabled'] = TRUE; |
| 503 |
|
$form['content_types']['display_only']['#description'] = t('These content type(s) are used as newsletter. They can be set in !simplenews_settings.', array('!simplenews_settings' => l('Simplenews settings', 'admin/settings/simplenews'))); |
| 504 |
|
$form['content_types']['nodes'] = array( |
| 505 |
|
'#type' => 'value', |
| 506 |
|
'#value' => $form['content_types']['nodes']['#default_value'], |
| 507 |
|
); |
| 508 |
// Free tagging can not be allowed see: simplenews_validate_taxonomy(). |
// Free tagging can not be allowed see: simplenews_validate_taxonomy(). |
| 509 |
$form['settings']['tags'] = array('#type' => 'value', '#value' => FALSE); |
$form['settings']['tags'] = array('#type' => 'value', '#value' => FALSE); |
| 510 |
// Multiple select does not work with simplenews. |
// Multiple select does not work with simplenews. |