Index: feedbuttons.module =================================================================== --- feedbuttons.module (revision 76) +++ feedbuttons.module (working copy) @@ -24,6 +24,7 @@ * @returns block HTML */ function feedbuttons_block($op='list', $delta=0) { + global $base_url; // listing of blocks, such as on the admin/block page if ($op == "list") { $block[0]["info"] = t("Subscribe Buttons"); @@ -43,33 +44,33 @@ $feedurl = variable_get('feedbuttons_feed_url', url('node/feed', NULL, NULL, TRUE)); if ($buttons = variable_get('feedbuttons_show_items', '')) { foreach ($buttons as $button) { - if ($button === 'feediconlg') { $block_content .= 'Feed Icon
'; } - if ($button === 'feedicon') { $block_content .= 'Feed Icon
'; } - if ($button === 'xml') { $block_content .= 'XML Icon
'; } - if ($button === 'google') { $block_content .= 'Google
'; } - if ($button === 'delicious') { $block_content .= 'Delicious
'; } - if ($button === 'yahoo') { $block_content .= 'Yahoo!
'; } - if ($button === 'bloglines') { $block_content .= 'Bloglines
'; } - if ($button === 'newsgator') { $block_content .= 'Newsgator
'; } - if ($button === 'msn') { $block_content .= 'MSN
'; } - if ($button === 'feedster') { $block_content .= 'Feedster
'; } - if ($button === 'aol') { $block_content .= 'AOL
'; } - if ($button === 'furl') { $block_content .= 'Furl
'; } - if ($button === 'rojo') { $block_content .= 'Rojo
'; } - if ($button === 'newsburst') { $block_content .= 'Newsburst
'; } - if ($button === 'pluck') { $block_content .= 'Pluck
'; } - if ($button === 'feedfeeds') { $block_content .= 'FeedFeeds
'; } - if ($button === 'addkinja') { $block_content .= 'Add Kinja
'; } - if ($button === 'solosub') { $block_content .= 'SoloSub
'; } - if ($button === 'multirss') { $block_content .= 'MultiRSS
'; } - if ($button === 'rmail') { $block_content .= 'rMail
'; } - if ($button === 'rssfwd') { $block_content .= 'RSSFwd
'; } - if ($button === 'blogarithm') { $block_content .= 'Blogarithm
'; } - if ($button === 'eskobo') { $block_content .= 'Eskobo
'; } - if ($button === 'gritwire') { $block_content .= 'GritWire
'; } - if ($button === 'botablog') { $block_content .= 'BotABlog
'; } - if ($button === 'monitorthis') { $block_content .= 'Monitor This
'; } - if ($button === 'simplify') { $block_content .= 'Simplify
'; } + if ($button === 'feediconlg') { $block_content .= 'Feed Icon
'; } + if ($button === 'feedicon') { $block_content .= 'Feed Icon
'; } + if ($button === 'xml') { $block_content .= 'XML Icon
'; } + if ($button === 'google') { $block_content .= 'Google
'; } + if ($button === 'delicious') { $block_content .= 'Delicious
'; } + if ($button === 'yahoo') { $block_content .= 'Yahoo!
'; } + if ($button === 'bloglines') { $block_content .= 'Bloglines
'; } + if ($button === 'newsgator') { $block_content .= 'Newsgator
'; } + if ($button === 'msn') { $block_content .= 'MSN
'; } + if ($button === 'feedster') { $block_content .= 'Feedster
'; } + if ($button === 'aol') { $block_content .= 'AOL
'; } + if ($button === 'furl') { $block_content .= 'Furl
'; } + if ($button === 'rojo') { $block_content .= 'Rojo
'; } + if ($button === 'newsburst') { $block_content .= 'Newsburst
'; } + if ($button === 'pluck') { $block_content .= 'Pluck
'; } + if ($button === 'feedfeeds') { $block_content .= 'FeedFeeds
'; } + if ($button === 'addkinja') { $block_content .= 'Add Kinja
'; } + if ($button === 'solosub') { $block_content .= 'SoloSub
'; } + if ($button === 'multirss') { $block_content .= 'MultiRSS
'; } + if ($button === 'rmail') { $block_content .= 'rMail
'; } + if ($button === 'rssfwd') { $block_content .= 'RSSFwd
'; } + if ($button === 'blogarithm') { $block_content .= 'Blogarithm
'; } + if ($button === 'eskobo') { $block_content .= 'Eskobo
'; } + if ($button === 'gritwire') { $block_content .= 'GritWire
'; } + if ($button === 'botablog') { $block_content .= 'BotABlog
'; } + if ($button === 'monitorthis') { $block_content .= 'Monitor This
'; } + if ($button === 'simplify') { $block_content .= 'Simplify
'; } } } @@ -121,33 +122,33 @@ '#title' => t('Show the following buttons in my block'), '#default_value' => variable_get('feedbuttons_show_items', array('status', 'promote')), '#options' => array( - 'feediconlg' => t('Feed Icon'), - 'feedicon' => t('Feed Icon'), - 'xml' => t('XML Icon'), - 'google' => t('Google'), - 'delicious' => t('Delicious'), - 'yahoo' => t('Yahoo!'), - 'bloglines' => t('Bloglines'), - 'newsgator' => t('Newsgator'), - 'msn' => t('MSN'), - 'feedster' => t('Feedster'), - 'aol' => t('AOL'), - 'furl' => t('Furl'), - 'rojo' => t('Rojo'), - 'newsburst' => t('Newsburst'), - 'pluck' => t('Pluck'), - 'feedfeeds' => t('FeedFeeds'), - 'addkinja' => t('Add Kinja'), - 'solosub' => t('SoloSub'), - 'multirss' => t('MultiRSS'), - 'rmail' => t('rMail'), - 'rssfwd' => t('RSSFwd'), - 'blogarithm' => t('Blogarithm'), - 'eskobo' => t('Eskobo'), - 'gritwire' => t('GritWire'), - 'botablog' => t('BotABlog'), - 'monitorthis' => t('Monitor This'), - 'simplify' => t('Simplify'), + 'feediconlg' => t('Feed Icon'), + 'feedicon' => t('Feed Icon'), + 'xml' => t('XML Icon'), + 'google' => t('Google'), + 'delicious' => t('Delicious'), + 'yahoo' => t('Yahoo!'), + 'bloglines' => t('Bloglines'), + 'newsgator' => t('Newsgator'), + 'msn' => t('MSN'), + 'feedster' => t('Feedster'), + 'aol' => t('AOL'), + 'furl' => t('Furl'), + 'rojo' => t('Rojo'), + 'newsburst' => t('Newsburst'), + 'pluck' => t('Pluck'), + 'feedfeeds' => t('FeedFeeds'), + 'addkinja' => t('Add Kinja'), + 'solosub' => t('SoloSub'), + 'multirss' => t('MultiRSS'), + 'rmail' => t('rMail'), + 'rssfwd' => t('RSSFwd'), + 'blogarithm' => t('Blogarithm'), + 'eskobo' => t('Eskobo'), + 'gritwire' => t('GritWire'), + 'botablog' => t('BotABlog'), + 'monitorthis' => t('Monitor This'), + 'simplify' => t('Simplify'), ), ); return system_settings_form($form);