You are here

function jqp_jqp in jQuery Plugin Handler (JQP) 6.2

Implementation of hook_jqp().

ONLY FOR TESTING PURPOSES!!!

File

./jqp.module, line 555
Used to register and load javascript libraries and plugins from a cetral point

Code

function jqp_jqp() {
  $js_libraries['dummy_plugin1'] = array(
    'name' => 'Dummy plugin 1',
    'description' => 'This plugin is registered by the jqp module.',
    'project_url' => 'http://www.library_project_page.org',
    'scripts' => array(
      array(
        'jquery.dummy.min.js',
      ),
      '1.4.3-BETA-3' => array(
        'jquery.dummy[1.4.3-BETA-3].min.js',
      ),
    ),
    'stylesheets' => array(
      array(
        'styles.css',
      ),
      '1.4.3-BETA-3' => array(
        'styles[1.4.3-BETA-3].css',
      ),
    ),
  );
  $js_libraries['dummy_plugin2'] = array(
    'name' => 'Dummy plugin 2',
    'description' => 'This plugin is also registered by the jqp module.',
    'project_url' => 'http://www.library_project_page.org',
    'scripts' => array(
      array(
        'jquery.dummy2.min.js',
      ),
      '2' => array(
        'jquery.dummy2[2].min.js',
      ),
    ),
  );
  return $js_libraries;
}