--- twitter_actions.module.orig 2009-05-26 01:05:38.000000000 +0530 +++ twitter_actions.module 2010-01-07 23:43:46.000000000 +0530 @@ -62,7 +62,7 @@ function twitter_actions_set_status_acti '#default_value' => $context['message'], '#cols' => '80', '#rows' => '3', - '#description' => t('The message that should be sent. You may include the following variables: %site_name, %username, %node_url, %node_type, %title, %teaser, %body. Not all variables will be available in all contexts.'), + '#description' => t('The message that should be sent. You may include the following variables: %site_name, %username, %node_url, %tinyurl, %node_type, %title, %teaser, %body. Not all variables will be available in all contexts.'), '#required' => TRUE, ); return $form; @@ -162,6 +162,7 @@ function twitter_actions_set_status_acti $variables = array_merge($variables, array( '%uid' => $node->uid, '%node_url' => url('node/'. $node->nid, array('absolute' => TRUE)), + '%tinyurl' => twitter_shorten_url(url('node/'. $node->nid, array('absolute' => TRUE))), '%node_type' => node_get_types('name', $node), '%title' => $node->title, '%teaser' => $node->teaser,