jumper-8.x-1.1/jumper.module
jumper.module
<?php
/**
* @file
* Provides a small, modern, dependency-free smooth scrolling library.
*/
/**
* Implements hook_library_info_alter().
*/
function jumper_library_info_alter(&$libraries, $extension) {
if ($extension === 'jumper' && blazy()->getLibrariesPath('jump')) {
$libraries['load']['dependencies'][] = 'jumper/jump';
}
}
/**
* Implements hook_help().
*/
function jumper_help($route_name) {
if ($route_name == 'help.page.jumper') {
$output = file_get_contents(dirname(__FILE__) . '/README.md');
return blazy()->markdown($output);
}
return '';
}
