| 284 |
if (user_access('access tellafriend form')) { |
if (user_access('access tellafriend form')) { |
| 285 |
//drupal_set_message('option = ' . variable_get('tellafriend_block_style'), 'error'); |
//drupal_set_message('option = ' . variable_get('tellafriend_block_style'), 'error'); |
| 286 |
|
|
| 287 |
$block['subject'] = variable_get('tellafriend_block_title', t("Spread the world...")); |
$block['subject'] = filter_xss_admin(variable_get('tellafriend_block_title', t("Spread the world..."))); |
| 288 |
if (variable_get('tellafriend_block_style', 0) == '0') { //Link |
if (variable_get('tellafriend_block_style', 0) == '0') { //Link |
| 289 |
$blockContent .= '<ul><li class="leaf">' . l(t(variable_get('tellafriend_block_linklabel', t("Tell a friend..."))), 'tellafriend') . '</li></ul>'; |
$blockContent .= '<ul><li class="leaf">' . l(t(variable_get('tellafriend_block_linklabel', t("Tell a friend..."))), 'tellafriend') . '</li></ul>'; |
| 290 |
$block['content'] = $blockContent; |
$block['content'] = $blockContent; |
| 368 |
$form['tellafriend_personal'] = array( |
$form['tellafriend_personal'] = array( |
| 369 |
'#type' => 'textarea', |
'#type' => 'textarea', |
| 370 |
'#title' => t('Your Personal message'), |
'#title' => t('Your Personal message'), |
| 371 |
'#default_value' => variable_get('tellafriend_personal_message', 'I found this great web site, which you should really check out!'), |
'#default_value' => variable_get('tellafriend_personal_message', t('I found this great web site, which you should really check out!')), |
| 372 |
'#cols' => 70, |
'#cols' => 70, |
| 373 |
'#rows' => 5, |
'#rows' => 5, |
| 374 |
'#description' => t('Add your personal message to the e-mail.'), |
'#description' => t('Add your personal message to the e-mail.'), |