You are here

function itoggle_include_itoggle in iToggle 7

Same name and namespace in other branches
  1. 7.2 itoggle.module \itoggle_include_itoggle()

Helper function Includes itoggle plugin and default style

2 calls to itoggle_include_itoggle()
itoggle_field_field_formatter_view in modules/field/itoggle_field.module
Implements hook_field_formatter_view().
itoggle_views_handler_field::init in modules/views/itoggle_views_handler.inc
Init the handler with necessary data.

File

includes/itoggle.inc, line 12
iToggle module include.

Code

function itoggle_include_itoggle() {
  if (variable_get_value('itoggle_css')) {
    drupal_add_css(drupal_get_path('module', 'itoggle') . '/css/itoggle.css');
  }
  drupal_add_js(itoggle_get_js());
}