You are here

function libraries_cdn_load in Libraries CDN API 7

Use the #attached key of a render array to attach a cdn libraries.

See drupal_process_attached() for more information on how to use it.

Code example:

$form['#attached'] = array( 'libraries_cdn_load' => array( array('cdnjs', 'ol3', '3.8.2'), ), );

File

./libraries_cdn.module, line 268
Main module file.

Code

function libraries_cdn_load() {
  call_user_func_array('libraries_cdn_add', func_get_args());
}