hc_offcanvas_nav-1.0.2/hc_offcanvas_nav.install
hc_offcanvas_nav.install
<?php
/**
* @file
* This code is to show library status message.
*/
/**
* Implements hook_requirements().
*/
function hc_offcanvas_nav_requirements($phase) {
$requirements = [];
if ($phase == 'runtime' && function_exists('libraries_get_path')) {
$plupload_path = libraries_get_path('hc-offcanvas-nav');
if (!$plupload_path) {
$requirements['plupload'] = [
'title' => 'HC Off-canvas Nav Library',
'Version' => 'v6.1.1',
'severity' => REQUIREMENT_ERROR,
'value' => 'Not Installed',
'description' => t('Please Download hc_offcanvas_nav Library hc-offcanvas-nav from <a href="@drupal-handbook" target="_blank">hc-offcanvas-nav</a>.', ['@drupal-handbook' => 'https://github.com/somewebmedia/hc-offcanvas-nav']),
];
}
}
return $requirements;
}
