Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Developer Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Documentation
Docs
Developer Documentation
Commits
56322e09
Commit
56322e09
authored
5 years ago
by
Seamus Lee
Browse files
Options
Downloads
Patches
Plain Diff
Update examples to be simpler initially and a more detailed example
parent
bdfa38e1
No related branches found
Branches containing commit
No related tags found
1 merge request
!623
Add Docs on new theme hooks
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/hooks/hook_civicrm_themes.md
+17
-4
17 additions, 4 deletions
docs/hooks/hook_civicrm_themes.md
with
17 additions
and
4 deletions
docs/hooks/hook_civicrm_themes.md
+
17
−
4
View file @
56322e09
...
...
@@ -46,19 +46,32 @@ This Hook is called when building a list of available themes for use within Civi
/*
* A theme is a set of CSS files which are loaded on CiviCRM pages.
*/
function
civitest_civicrm_themes
(
&
$themes
)
{
$themes
[
'civielection'
]
=
[
'title'
=>
'civielection theme'
,
'ext'
=>
'au.org.greens.civielection'
,
];
}
```
a more detailed example
```
php
/*
* A theme is a set of CSS files which are loaded on CiviCRM pages.
*/
function
civitest_civicrm_themes
(
&
$themes
)
{
$themes
[
'civielection'
]
=
[
'name'
=>
'civielection'
,
'title'
=>
'civielection theme'
,
'ext'
=>
'au.org.greens.civielection'
,
'
prefix'
=>
NULL
,
'
name'
=>
'civielection'
,
'url_callback'
=>
'\\Civi\\Core\\Themes\\Resolvers::simple'
,
'search_order'
=>
[
0
=>
'civielection'
,
1
=>
'_fallback_'
,
1
=>
Civi\Core\Themes
::
FALLBACK
,
],
'excludes'
=>
[],
'prefix'
=>
'election'
,
'excludes'
=>
[
'bootstrap.css'
],
];
}
```
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