-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstorage.api.php
66 lines (60 loc) · 1.22 KB
/
storage.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
<?php
/**
* @file
* Hooks provided by Storage.
*/
/**
* @addtogroup hooks
* @{
*/
/**
* Generate a file.
*
* @param $storage
* The storage to be generated.
* @return
* Filepath to the generated file.
*/
function hook_storage_generate(Storage $storage) {
}
/**
* Determine the current user's access to a file.
*
* @param $storage
* Storage that is attempting to be accessed.
* @return
* Whether access is permitted or not.
* - TRUE for permitted.
* - FALSE for denied.
* - NULL to inherit the parent's access.
*/
function hook_storage_access(Storage $storage) {
}
/**
* Alter the current user's access to a file that belongs to another module.
*
* @param $storage
* Storage that is attempting to be accessed.
* @return
* Access alteration.
* - TRUE for permitted.
* - FALSE for denied.
* - NULL for don't alter.
*/
function hook_storage_access_alter(Storage $storage) {
}
/**
* Provides information about the storage service.
*
* @return
* An associative array, with the following keys:
* - 'name'
* Translated name of the storage service.
* - 'class'
* - 'htaccess'
* - 'copy'
* - 'serve'
* - 'serve_secure'
*/
function hook_storage_service_info() {
}