Index: ed_readmore.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/ed_readmore/ed_readmore.module,v retrieving revision 1.5.8.2.2.11 diff -u -p -r1.5.8.2.2.11 ed_readmore.module --- ed_readmore.module 20 Apr 2009 22:56:46 -0000 1.5.8.2.2.11 +++ ed_readmore.module 14 Sep 2009 15:33:07 -0000 @@ -108,6 +108,13 @@ function ed_readmore_admin_settings() { '#description' => t('Adds %nofollow to the link\'s attributes. Often used for search engine optimization purposes.', array('%nofollow' => 'rel="nofollow"')), ); + $form['ed_readmore_formatting']['ed_readmore_ellipsis'] = array( + '#type' => 'textfield', + '#title' => t('Ellipsis'), + '#description' => t('Enter any text you wish displayed between the teaser and the %read_more link.', array('%read_more' => t('Read More'))), + '#default_value' => variable_get('ed_readmore_ellipsis', '...'), + ); + return system_settings_form($form); } @@ -148,7 +155,8 @@ function ed_readmore_link_place($teaser, // Get last position of the last closing marker // If found, insert the link before the marker if (preg_match('!]*>$!i', $teaser, $match, PREG_OFFSET_CAPTURE)) { - $teaser = substr_replace($teaser, ' '. ed_readmore_link_render($node, $display), $match[0][1], 0); + $ellipsis = variable_get('ed_readmore_ellipsis', '...'); + $teaser = substr_replace($teaser, $ellipsis .' '. ed_readmore_link_render($node, $display), $match[0][1], 0); } else { $display = 'after';