-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathucb_ckeditor_plugins.module
More file actions
50 lines (47 loc) · 1.14 KB
/
ucb_ckeditor_plugins.module
File metadata and controls
50 lines (47 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
* @file
* Contains functional hooks for ucb_ckeditor_plugins.
*
* Hooks in Drupal typically start with the name of the module, in this case
* `ucb_ckeditor_plugins`. Code other than hooks should be put in a PHP class
* in the src folder.
*
* @see https://www.drupal.org/docs/develop/creating-modules/understanding-hooks
*/
/**
* Adds plugin styles to all pages on the site.
*
* Implements hook_page_attachments().
*/
function ucb_ckeditor_plugins_page_attachments(array &$page) {
$page['#attached']['library'][] = 'ucb_ckeditor_plugins/ckeditor-plugin-styles';
}
/**
* Exposes the needed templates for the map plugin.
*
* Implements hook_theme().
*/
function ucb_ckeditor_plugins_theme() {
return [
'ucb_campus_map_embed' => [
'variables' => [
'attributes' => [],
'mapLocation' => '',
],
],
'ucb_google_map_embed' => [
'variables' => [
'attributes' => [],
'googleMyMapsParams' => '',
'mapLocation' => '',
],
],
'ucb_google_calendar_embed' => [
'variables' => [
'attributes' => [],
'queryString' => '',
],
],
];
}