/[drupal]/contributions/modules/tellafriend/tellafriend.module
ViewVC logotype

Diff of /contributions/modules/tellafriend/tellafriend.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.19, Wed Aug 26 16:45:10 2009 UTC revision 1.20, Tue Oct 27 22:23:40 2009 UTC
# Line 284  function tellafriend_block($op = 'list', Line 284  function tellafriend_block($op = 'list',
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;
# Line 368  function tellafriend_page(&$form_state) Line 368  function tellafriend_page(&$form_state)
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.'),

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.2