-
Notifications
You must be signed in to change notification settings - Fork 0
/
express_help.api.php
41 lines (37 loc) · 1.12 KB
/
express_help.api.php
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
<?php
/**
* Hook for providing page/screen level help links.
*/
function hook_express_help($variables) {
$variables['admin/content/add'][] = array(
'title' => 'Adding Content Help',
'short_title' => 'Adding Content',
'url' => 'http://www.colorado.edu/webcentral/tutorials/adding-content',
);
return $variables = array();
}
/**
* Hook for providing field level help links.
*/
function hook_express_help_fields($variables) {
$variables['article_node_form']['fields'] = array(
'field_article_external_url' => array(
'title' => 'External URL Help',
'short_title' => 'External URL',
'url' => 'http://www.colorado.edu/webcentral/tutorials/article/external_url',
),
'metatags' => array(
'title' => 'Metatags Help',
'short_title' => 'Metatags',
'url' => 'http://www.colorado.edu/webcentral/tutorials/article/external_url',
),
);
return $variables;
}
/**
* Hook for providing custom paths which inlcude wildcards for help links.
*/
function hook_express_help_custom_paths($variables) {
$variables['path/to/custom/%/page'] = 'callback-function';
return $variables;
}