diff --git a/google_cse.info.yml b/google_cse.info.yml new file mode 100644 index 0000000000000000000000000000000000000000..83db453c50804d6a91bce1f54d9d58e0337310af --- /dev/null +++ b/google_cse.info.yml @@ -0,0 +1,7 @@ +name: Google Custom Search Engine +type: module +description: Use Google Custom Search to search your site and/or any other sites. +core: 8.x +package: Search +dependencies: + - search diff --git a/google_cse.module b/google_cse.module new file mode 100644 index 0000000000000000000000000000000000000000..e6c9f35520225eda864144f47800e853f6e2fa3f --- /dev/null +++ b/google_cse.module @@ -0,0 +1,33 @@ +<?php + +/** + * @file + * Contains google_cse.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function google_cse_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the google_cse module. + case 'help.page.google_cse': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('Use Google Custom Search to search your site and/or any other sites.') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function google_cse_theme() { + $theme = []; + + return $theme; +}