* Install, update and uninstall functions for the colorbox module.
*/
useDrupal\Core\Url;
/**
* Implements hook_requirements().
*/
...
...
@@ -21,7 +23,7 @@ function colorbox_requirements($phase) {
'title'=>t('Colorbox plugin'),
'value'=>t('@e: At least @a',array('@e'=>$error_type,'@a'=>COLORBOX_MIN_PLUGIN_VERSION)),
'severity'=>REQUIREMENT_ERROR,
'description'=>t('!error You need to download the !colorbox, extract the archive and place the colorbox directory in the %path directory on your server.',array('!error'=>$error_message,'!colorbox'=>l(t('Colorbox plugin'),$library['download url']),'%path'=>'sites/all/libraries')),
'description'=>t('!error You need to download the !colorbox, extract the archive and place the colorbox directory in the %path directory on your server.',array('!error'=>$error_message,'!colorbox'=>\Drupal::l(t('Colorbox plugin'),Url::fromUri($library['download url'])),'%path'=>'sites/all/libraries')),
@@ -36,7 +38,7 @@ function colorbox_requirements($phase) {
'title'=>t('Colorbox plugin'),
'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('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'=>\Drupal::l(t('Colorbox plugin'),Url::fromUri($library['download url'])),'%path'=>$library['library path'])),