You are here

function sexybookmarks_init in Share Buttons, Related Posts, Content Analytics - Shareaholic 7

Same name and namespace in other branches
  1. 7.2 sexybookmarks.module \sexybookmarks_init()

Implements hook_init().

File

./sexybookmarks.module, line 22
Contains core functions for the SexyBookmarks module.

Code

function sexybookmarks_init() {
  $globals = array(
    'perfoption' => '0',
  );
  drupal_add_js('SHRSB_Globals = ' . drupal_json_encode($globals) . ';', 'inline');
  drupal_add_js('SHRSB_Settings = {};', 'inline');
  drupal_add_js('SHRCB_Globals = ' . drupal_json_encode($globals) . ';', 'inline');
  drupal_add_js('SHRCB_Settings = {};', 'inline');
}