function autosave_library in Autosave 7.2
Implements hook_library().
File
- ./
autosave.module, line 72 - Does background saves of node being edited.
Code
function autosave_library() {
$libraries = array();
$libraries['jquery.autosave'] = array(
'title' => 'jQuery Autosave',
'website' => 'https://bitbucket.org/stanlemon/jquery-autosave',
'version' => '1.1.0',
'js' => array(
drupal_get_path('module', 'autosave') . '/jquery.autosave.js' => array(),
),
);
$libraries['autosave'] = array(
'title' => 'Autosave',
'website' => 'http://drupal.org/project/autosave',
'version' => '',
'js' => array(
drupal_get_path('module', 'autosave') . '/autosave.js' => array(),
),
'css' => array(
drupal_get_path('module', 'autosave') . '/autosave.css' => array(),
),
'dependencies' => array(
array(
'system',
'drupal.ajax',
),
array(
'autosave',
'jquery.autosave',
),
),
);
return $libraries;
}