'value'=>$t('At least @a',array('@a'=>COLORBOX_MIN_PLUGIN_VERSION)),
'severity'=>REQUIREMENT_ERROR,
'description'=>$t('You need to download the !colorbox, extract the archive and place the colorbox directory in the %path directory on your server.',array('!colorbox'=>l($t('Colorbox plugin'),$library['download url']),'%path'=>'sites/all/libraries')),
'value'=>$t('At least @a',array('@a'=>COLORBOX_MIN_PLUGIN_VERSION)),
'severity'=>REQUIREMENT_ERROR,
'description'=>$t('You need to download a later version of the !colorbox and replace the old version located in the %path directory on your server.',array('!colorbox'=>l($t('Colorbox plugin'),$library['download url']),'%path'=>$library['library path'])),
);
}
}
return$requirements;
}
// function colorbox_requirements($phase) {
// $requirements = array();
//
// if ($phase == 'runtime') {
// $t = get_t();
// $library = libraries_detect('colorbox');
//
// if (empty($library['installed'])) {
// $requirements['colorbox_plugin'] = array(
// 'title' => $t('Colorbox plugin'),
// 'value' => $t('At least @a', array('@a' => COLORBOX_MIN_PLUGIN_VERSION)),
// 'severity' => REQUIREMENT_ERROR,
// 'description' => $t('You need to download the !colorbox, extract the archive and place the colorbox directory in the %path directory on your server.', array('!colorbox' => l($t('Colorbox plugin'), $library['download url']), '%path' => 'sites/all/libraries')),
// 'value' => $t('At least @a', array('@a' => COLORBOX_MIN_PLUGIN_VERSION)),
// 'severity' => REQUIREMENT_ERROR,
// 'description' => $t('You need to download a later version of the !colorbox and replace the old version located in the %path directory on your server.', array('!colorbox' => l($t('Colorbox plugin'), $library['download url']), '%path' => $library['library path'])),
'#description'=>t('All images on a page with the same gallery value (rel attribute) will be grouped together. It must only contain lowercase letters, numbers, and underscores.'),
'#required'=>FALSE,
'#machine_name'=>array(
'exists'=>'colorbox_gallery_exists',
'error'=>t('The custom gallery field must only contain lowercase letters, numbers, and underscores.'),
'#description'=>'<strong class="error">'.t('For token support the <a href="@token_url">token module</a> must be installed.',array('@token_url'=>'http://drupal.org/project/token')).'</strong>',
// '#description' => t('All images on a page with the same gallery value (rel attribute) will be grouped together. It must only contain lowercase letters, numbers, and underscores.'),
// '#required' => FALSE,
// '#machine_name' => array(
// 'exists' => 'colorbox_gallery_exists',
// 'error' => t('The custom gallery field must only contain lowercase letters, numbers, and underscores.'),