function cpf_libraries_info in CPF 8
Implments hook_libraries_info().
File
- ./
cpf.module, line 11 - Provides a CPF Field Type and a CPF Form Element for storing CPF number data.
Code
function cpf_libraries_info() {
$libraries['mask_plugin'] = [
'name' => 'jQuery Mask Plugin',
'vendor url' => 'https://igorescobar.github.io/jQuery-Mask-Plugin/',
'download url' => 'https://github.com/igorescobar/jQuery-Mask-Plugin',
'version arguments' => [
'file' => 'jquery.mask.min.js',
// e.g. jQuery Mask Plugin v1.14.10.
'pattern' => '/jQuery Mask Plugin v(\\d+\\.+\\d+(\\.+\\d+)?)/',
'lines' => 3,
],
'files' => [
'js' => [
'jquery.mask.min.js',
],
],
];
return $libraries;
}