? readmore-token.patch
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.2.6
diff -u -p -r1.5.8.2.2.11.2.6 ed_readmore.module
--- ed_readmore.module	15 Sep 2009 20:06:58 -0000	1.5.8.2.2.11.2.6
+++ ed_readmore.module	1 Oct 2009 11:24:32 -0000
@@ -100,6 +100,20 @@ function ed_readmore_admin_settings() {
       '#required' => FALSE,
     );
 
+    if (module_exists('token')) {
+      $form['help'] = array(
+        '#type' => 'fieldset',
+        '#collapsible' => TRUE,
+        '#collapsed' => TRUE,
+        '#title' => t('Placeholder tokens'),
+        '#description' => t("The following placeholder tokens can be used in the Read More text and title. They will be replaced with the appropriate values."),
+      );
+
+      $form['help']['tokens'] = array(
+        '#value' => theme('token_help', 'node'),
+      );
+    }
+
     $form['ed_readmore_formatting']['ed_readmore_nofollow'] = array(
       '#type' => 'checkbox',
       '#title' => t('Make link nofollow'),
@@ -203,6 +217,11 @@ function ed_readmore_link_render($node, 
   // Replace double quotes with single quotes to prevent breaking of the title attribute
   $link_title = str_replace('"', '\'', t(check_plain(variable_get('ed_readmore_title', ED_READMORE_TITLE_DEFAULT))));
 
+  if (module_exists('token')) {
+    $link_title = token_replace($link_title, 'node', $node);
+    $link_text = token_replace($link_text, 'node', $node);
+  }
+
   // Build link options array
   $link_options = array(
     'attributes' => array(
