You are here

function twitter_profile_widget_init in Twitter Profile Widget 6

Same name and namespace in other branches
  1. 7 twitter_profile_widget.module \twitter_profile_widget_init()

Implementation of hook_init().

File

./twitter_profile_widget.module, line 61

Code

function twitter_profile_widget_init() {

  // Add css file
  $module_path = drupal_get_path('module', 'twitter_profile_widget');
  drupal_add_css($module_path . '/twitter_profile_widget.css');

  // Load internal js
  if (variable_get('twitter_profile_widget_js', 'external') == 'internal') {
    drupal_add_js($module_path . '/js/widget.js');
  }
}