You are here

function jeditable_init in jEditable inline content editing 6

Same name and namespace in other branches
  1. 6.2 jeditable.module \jeditable_init()

Implementation of hook_init().

File

./jeditable.module, line 67
jeditable.module

Code

function jeditable_init() {
  if (user_access('use jeditable')) {
    drupal_add_js(JEDITABLE_DIR_PLUGIN . '/jquery.jeditable.mini.js', 'module');
    drupal_add_js(JEDITABLE_DIR . '/drupal_jeditable.js', 'module');
    drupal_add_css(JEDITABLE_DIR . '/jeditable.css', 'theme');
  }
}