Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
google_cse
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
google_cse
Commits
000a3040
Commit
000a3040
authored
9 years ago
by
Malcolm Young
Browse files
Options
Downloads
Patches
Plain Diff
initial module and info created by Drupal Console
parent
984d0220
Branches
8.x-1.x
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
google_cse.info.yml
+7
-0
7 additions, 0 deletions
google_cse.info.yml
google_cse.module
+33
-0
33 additions, 0 deletions
google_cse.module
with
40 additions
and
0 deletions
google_cse.info.yml
0 → 100644
+
7
−
0
View file @
000a3040
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
This diff is collapsed.
Click to expand it.
google_cse.module
0 → 100644
+
33
−
0
View file @
000a3040
<?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
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment