You are here

function background_batch_library in Background Process 7

Same name and namespace in other branches
  1. 8 background_batch/background_batch.module \background_batch_library()
  2. 7.2 background_batch/background_batch.module \background_batch_library()

Implements hook_library().

File

background_batch/background_batch.module, line 91
This module adds background processing to Drupals batch API

Code

function background_batch_library() {
  $libraries = array();
  $libraries['background-process.batch'] = array(
    'title' => 'Background batch API',
    'version' => '1.0.0',
    'js' => array(
      drupal_get_path('module', 'background_batch') . '/js/batch.js' => array(
        'group' => JS_DEFAULT,
        'cache' => FALSE,
      ),
    ),
    'dependencies' => array(
      array(
        'background_batch',
        'background-process.progress',
      ),
    ),
  );
  $libraries['background-process.progress'] = array(
    'title' => 'Background batch progress',
    'version' => VERSION,
    'js' => array(
      drupal_get_path('module', 'background_batch') . '/js/progress.js' => array(
        'group' => JS_DEFAULT,
        'cache' => FALSE,
      ),
    ),
  );
  return $libraries;
}