-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbancho_gaapi_bonus.module
More file actions
executable file
·56 lines (48 loc) · 1.42 KB
/
bancho_gaapi_bonus.module
File metadata and controls
executable file
·56 lines (48 loc) · 1.42 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
51
52
53
54
55
56
<?php
/**
* Display help and module information
* @param section which section of the site we're displaying help
* @return help text for section
*/
function bancho_gaapi_bonus_help($path, $arg) {
switch ($path) {
case 'admin/modules#description':
return 'Google Analyticsデータのランキングアルゴリズムbonus';
break;
}
}
/**
* Implements hook_gaapi_ranking
().
*@param $action
* list|update
*@param $name
* name of the function
*@param $option
* which score to update
*@return
*
*/
function bancho_gaapi_bonus_gaapi_ranking($action = 'list', $name = FALSE, $option = FALSE) {
module_load_include('inc', 'bancho_gaapi_bonus', 'bancho_gaapi_bonus');
return bancho_gaapi_bonus_gaapi_ranking_main($action, $name, $option);
}
/**
* Implements hook_form_alter
().
*/
function bancho_gaapi_bonus_form_alter(&$form, &$form_state, $form_id) {
if ($form_id != 'bancho_gaapi_settings_account') {
return;
}
module_load_include('inc', 'bancho_gaapi_bonus', 'bancho_gaapi_bonus');
bancho_gaapi_bonus_form_alter_main($form, $form_state, $form_id);
}
/**
* @todo Please document this function.
* @see http://drupal.org/node/1354
*/
function bancho_gaapi_bonus_form_alter_submit($form, &$form_state) {
module_load_include('inc', 'bancho_gaapi_bonus', 'bancho_gaapi_bonus');
bancho_gaapi_bonus_form_alter_submit_main($form, $form_state);
}