Révision 3acd948f
Ajouté par Assos Assos il y a plus de 6 ans
drupal7/sites/all/modules/file_entity/file_entity.api.php | ||
---|---|---|
78 | 78 |
* Array of information on file formatters exposed by |
79 | 79 |
* hook_file_formatter_info() implementations. |
80 | 80 |
*/ |
81 |
function hook_file_formatter_info_alter(&$info) { |
|
81 |
function hook_file_formatter_info_alter(array &$info) {
|
|
82 | 82 |
// @todo Add example. |
83 | 83 |
} |
84 | 84 |
|
... | ... | |
170 | 170 |
* - "delete" |
171 | 171 |
* - "update" |
172 | 172 |
* - "view" |
173 |
* - "download" |
|
173 |
* - "download".
|
|
174 | 174 |
* @param object $file |
175 | 175 |
* The file on which the operation is to be performed, or, if it does |
176 | 176 |
* not yet exist, the type of file to be created. |
... | ... | |
178 | 178 |
* A user object representing the user for whom the operation is to be |
179 | 179 |
* performed. |
180 | 180 |
* |
181 |
* @return string|NULL
|
|
181 |
* @return string|null
|
|
182 | 182 |
* FILE_ENTITY_ACCESS_ALLOW if the operation is to be allowed; |
183 | 183 |
* FILE_ENTITY_ACCESS_DENY if the operation is to be denied; |
184 | 184 |
* FILE_ENTITY_ACCESS_IGNORE to not affect this operation at all. |
... | ... | |
377 | 377 |
* @param object $file |
378 | 378 |
* File object. |
379 | 379 |
*/ |
380 |
function hook_file_type_alter(&$types, $file) { |
|
380 |
function hook_file_type_alter(array &$types, $file) {
|
|
381 | 381 |
// Choose a specific, non-first, file type. |
382 | 382 |
$types = array($types[4]); |
383 | 383 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules