You are here

function sharebar_buttons_def in ShareBar 6

Same name and namespace in other branches
  1. 8 sharebar.module \sharebar_buttons_def()
  2. 7.2 sharebar.module \sharebar_buttons_def()
  3. 7 sharebar.module \sharebar_buttons_def()

Function to defines default values.

7 calls to sharebar_buttons_def()
sharebar_addbutton in ./sharebar.admin.inc
Form builder: create buttons.
sharebar_addbutton_submit in ./sharebar.admin.inc
Submit handler for hook_addbutton().
sharebar_button_confirm_delete in ./sharebar.admin.inc
Form builder: delete buttons.
sharebar_button_confirm_delete_submit in ./sharebar.admin.inc
Submit handler for hook_button_confirm_delete().
sharebar_machine_name_load in ./sharebar.admin.inc
Callback to load existing machine name.

... See full list

File

./sharebar.module, line 215
Various module information.

Code

function sharebar_buttons_def() {
  return 'a:10:{s:4:"digg";O:8:"stdClass":6:{s:12:"machine_name";s:4:"digg";s:4:"name";s:4:"digg";s:10:"big_button";s:317:"<script type="text/javascript">(function() { var s = document.createElement(\'SCRIPT\\), s1 = document.getElementsByTagName(\'SCRIPT\')[0]; s.type = \'text/javascript\'; s.async = true; s.src = \'http://widgets.digg.com/buttons.js\'; s1.parentNode.insertBefore(s, s1); })(); </script><a class="DiggThisButton DiggMedium"></a>";s:12:"small_button";s:318:"<script type="text/javascript">(function() { var s = document.createElement(\'SCRIPT\'), s1 = document.getElementsByTagName(\'SCRIPT\')[0]; s.type = \'text/javascript\'; s.async = true; s.src = \'http://widgets.digg.com/buttons.js\'; s1.parentNode.insertBefore(s, s1); })(); </script><a class="DiggThisButton DiggCompact"></a>";s:7:"enabled";i:1;s:6:"weight";s:1:"2";}s:7:"twitter";O:8:"stdClass":6:{s:12:"machine_name";s:7:"twitter";s:4:"name";s:7:"twitter";s:10:"big_button";s:217:"<a href="http://twitter.com/share" class="twitter-share-button" data-url="[url]"data-count="vertical" data-via="[twitter]">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>";s:12:"small_button";s:220:"<a href="http://twitter.com/share" class="twitter-share-button" data-url="[url]" data-count="horizontal" data-via="[twitter]">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>";s:7:"enabled";i:1;s:6:"weight";s:1:"0";}s:8:"facebook";O:8:"stdClass":6:{s:12:"machine_name";s:8:"facebook";s:4:"name";s:8:"facebook";s:10:"big_button";s:447:"<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, \'script\', \'facebook-jssdk\'));</script> <html xmlns:fb="http://ogp.me/ns/fb#"> <fb:like href="[url]" send="true" layout="box_count" width="450" show_faces="true"></fb:like>";s:12:"small_button";s:450:"<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, \'script\', \'facebook-jssdk\'));</script> <html xmlns:fb="http://ogp.me/ns/fb#"> <fb:like href="[url]" send="true" layout="button_count" width="450" show_faces="true"></fb:like>";s:7:"enabled";i:1;s:6:"weight";s:1:"1";}s:6:"reddit";O:8:"stdClass":6:{s:12:"machine_name";s:6:"reddit";s:4:"name";s:6:"reddit";s:10:"big_button";s:89:"<script type="text/javascript" src="http://reddit.com/static/button/button2.js"></script>";s:12:"small_button";s:89:"<script type="text/javascript" src="http://reddit.com/static/button/button1.js"></script>";s:7:"enabled";i:1;s:6:"weight";s:1:"4";}s:5:"dzone";O:8:"stdClass":6:{s:12:"machine_name";s:5:"dzone";s:4:"name";s:5:"dzone";s:10:"big_button";s:94:"<script language="javascript" src="http://widgets.dzone.com/links/widgets/zoneit.js"></script>";s:12:"small_button";s:94:"<script language="javascript" src="http://widgets.dzone.com/links/widgets/zoneit.js"></script>";s:7:"enabled";i:1;s:6:"weight";s:1:"5";}s:11:"stumbleupon";O:8:"stdClass":6:{s:12:"machine_name";s:11:"stumbleupon";s:4:"name";s:11:"stumbleupon";s:10:"big_button";s:70:"<script src="http://www.stumbleupon.com/hostedbadge.php?s=5"></script>";s:12:"small_button";s:70:"<script src="http://www.stumbleupon.com/hostedbadge.php?s=2"></script>";s:7:"enabled";i:1;s:6:"weight";s:1:"3";}s:11:"designfloat";O:8:"stdClass":6:{s:12:"machine_name";s:11:"designfloat";s:4:"name";s:11:"designfloat";s:10:"big_button";s:150:"<script type="text/javascript">submit_url = \'[url]\';</script><script type="text/javascript" src="http://www.designfloat.com/evb2/button.php"></script>";s:12:"small_button";s:149:"<script type="text/javascript">submit_url = \'[url]\';</script><script type="text/javascript" src="http://www.designfloat.com/evb/button.php"></script>";s:7:"enabled";i:1;s:6:"weight";s:1:"6";}s:5:"email";O:8:"stdClass":6:{s:12:"machine_name";s:5:"email";s:4:"name";s:5:"email";s:10:"big_button";s:71:"<a href="mailto:?subject=[url]" class="sharebar-button email">Email</a>";s:12:"small_button";s:71:"<a href="mailto:?subject=[url]" class="sharebar-button email">Email</a>";s:7:"enabled";i:1;s:6:"weight";s:1:"7";}s:8:"linkedin";O:8:"stdClass":6:{s:12:"machine_name";s:8:"linkedin";s:4:"name";s:8:"linkedin";s:10:"big_button";s:158:"<script src="//platform.linkedin.com/in.js" type="text/javascript">
 lang: en_US</script><script type="IN/Share" data-url="[url]" data-counter="top"></script>";s:12:"small_button";s:160:"<script src="//platform.linkedin.com/in.js" type="text/javascript">
 lang: en_US</script><script type="IN/Share" data-url="[url]" data-counter="right"></script>";s:7:"enabled";i:1;s:6:"weight";s:3:"-50";}s:10:"googleplus";O:8:"stdClass":6:{s:12:"machine_name";s:10:"googleplus";s:4:"name";s:10:"googleplus";s:10:"big_button";s:462:"<!-- Place this tag where you want the +1 button to render. -->
<div class="g-plusone" data-size="tall" data-href="[url]"></div><!-- Place this tag after the last +1 button tag. -->
<script type="text/javascript">(function() {var po = document.createElement(\'script\'); po.type = \'text/javascript\'; po.async = true;po.src = \'https://apis.google.com/js/plusone.js\';var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(po, s);})();</script>";s:12:"small_button";s:443:"<!-- Place this tag where you want the +1 button to render. --><div class="g-plusone" data-href="[url]"></div><!-- Place this tag after the last +1 button tag. --><script type="text/javascript">(function() {var po = document.createElement(\'script\'); po.type = \'text/javascript\'; po.async = true;po.src = \'https://apis.google.com/js/plusone.js\';var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(po, s);})();</script>";s:7:"enabled";i:1;s:6:"weight";s:3:"-50";}}';
}