edlp_search.module 779 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * @file
  4. * Contains edlp_search.module.
  5. */
  6. use Drupal\Core\Routing\RouteMatchInterface;
  7. /**
  8. * Implements hook_help().
  9. */
  10. function edlp_search_help($route_name, RouteMatchInterface $route_match) {
  11. switch ($route_name) {
  12. // Main module help for the edlp_search module.
  13. case 'help.page.edlp_search':
  14. $output = '';
  15. $output .= '<h3>' . t('About') . '</h3>';
  16. $output .= '<p>' . t('Edlp search module') . '</p>';
  17. return $output;
  18. default:
  19. }
  20. }
  21. /**
  22. * Implements hook_theme().
  23. */
  24. function edlp_search_theme($existing, $type, $theme, $path) {
  25. return array(
  26. 'edlp_search_search_form' => array(
  27. 'file' => 'includes/edlp_search_search_form.inc',
  28. 'variables' => array(
  29. 'form' => null,
  30. ),
  31. ),
  32. );
  33. }