-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdfp.api.php
72 lines (60 loc) · 1.22 KB
/
dfp.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
/**
* @file
* Hooks provided by the Chaos Tool Suite.
*
* This file is divided into static hooks (hooks with string literal names) and
* dynamic hooks (hooks with pattern-derived string names).
*/
/**
* @addtogroup hooks
* @{
*/
/**
* Alter the raw tag object just after it is loaded from the database.
*
* @param object $tag
*/
function hook_dfp_tag_load_alter(&$tag) {
}
/**
* Alter the tag object just after it is loaded and the settings have been
* loaded properly.
*
* @param object $tag
*/
function hook_dfp_tag_alter(&$tag) {
}
/**
* Alter a targeting key|value pair.
*
* @param array $target
*/
function hook_dfp_target_alter(&$target) {
}
/**
* Alter the global targeting key|value pairs.
*
* @param array $target
*/
function hook_dfp_global_targeting_alter(&$target) {
// The following example adds the URL arguments array to the targeting.
$arg = arg();
if (!empty($arg)) {
$targeting[] = array(
'target' => 'arg',
'value' => $arg,
);
}
}
/**
* Alter the keyvals array that is about to be used during the construction of
* a short tag.
*
* @param array $keyvals
*/
function hook_dfp_short_tag_keyvals_alter(&$keyvals) {
}
/**
* @} End of "addtogroup hooks".
*/