Added search module with database server, Person index and view

This commit is contained in:
naomi
2018-04-10 13:02:51 +02:00
parent b629a13ec8
commit f764ed5670
7 changed files with 371 additions and 0 deletions

View File

@ -0,0 +1,35 @@
<?php
/**
* @file
* Contains zencrm_search.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function zencrm_search_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the zencrm_search module.
case 'help.page.zencrm_search':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Provides search functionality for Zen CRM') . '</p>';
return $output;
default:
}
}
/**
* Implements hook_theme().
*/
function zencrm_search_theme() {
return [
'zencrm_search' => [
'render element' => 'children',
],
];
}