Index: service_links.module =================================================================== --- service_links.module (revision 8468) +++ service_links.module (working copy) @@ -121,6 +121,12 @@ '#return_value' => 1, '#default_value' => variable_get('service_links_show_yahoo', 0), ); + $form['what_links_to_show']['service_links_show_yahoo_buzz'] = array( + '#type' => 'checkbox', + '#title' => t('Show Yahoo! Buzz link'), + '#return_value' => 1, + '#default_value' => variable_get('service_links_show_yahoo_buzz', 0), + ); $form['what_links2_to_show'] = array( '#type' => 'fieldset', @@ -373,6 +379,11 @@ if (variable_get('service_links_show_yahoo', 0)) { $links['service_links_yahoo'] = theme('service_links_build_link', t('Yahoo'), "http://myweb2.search.yahoo.com/myresults/bookmarklet?u=$url&t=$title", t('Bookmark this post on Yahoo.'), 'images/yahoo.png', $nodelink); } + if (variable_get('service_links_show_yahoo_buzz', 0)) { + // For some reason, Yahoo! Buzz seems to want the URL escaped twice. + $url = drupal_urlencode($url); + $links['service_links_yahoo_buzz'] = theme('service_links_build_link', t('Yahoo! Buzz'), "http://buzz.yahoo.com/article/pub/$url", t('Bookmark this post on Yahoo! Buzz.'), 'images/yahoo-buzz.png', $nodelink); + } if (variable_get('service_links_show_technorati', 0)) { $links['service_links_technorati'] = theme('service_links_build_link', t('Technorati'), "http://technorati.com/cosmos/search.html?url=$url", t('Search Technorati for links to this post.'), 'images/technorati.png', $nodelink); }