function addtohomescreen_libraries_info in Add to homescreen 7
Implements hook_libraries_info().
File
- ./
addtohomescreen.module, line 10 - Integrates the 'Add to homescreen' library with Drupal.
Code
function addtohomescreen_libraries_info() {
$libraries['addtohomescreen'] = array(
'name' => 'Add to homescreen',
'vendor url' => 'https://github.com/cubiq/add-to-homescreen',
'download url' => 'https://github.com/cubiq/add-to-homescreen',
'version arguments' => array(
'file' => 'src/addtohomescreen.js',
'pattern' => '# v([0-9\\.]+)#',
'lines' => 100,
),
'variants' => array(
'minified' => array(
'files' => array(
'css' => array(
'style/addtohomescreen.css',
),
'js' => array(
'src/addtohomescreen.min.js',
),
),
),
'source' => array(
'files' => array(
'css' => array(
'style/addtohomescreen.css',
),
'js' => array(
'src/addtohomescreen.js',
),
),
),
),
'integration files' => array(
'addtohomescreen' => array(
'js' => array(
'addtohomescreen.js' => array(),
),
),
),
'post-load integration files' => TRUE,
);
return $libraries;
}