Added search module with database server, Person index and view
This commit is contained in:
35
modules/zencrm_search/zencrm_search.module
Normal file
35
modules/zencrm_search/zencrm_search.module
Normal 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',
|
||||
],
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user