Révision 7e72b748
Ajouté par Assos Assos il y a plus de 6 ans
drupal7/sites/all/modules/ctools/includes/entity-access.inc | ||
---|---|---|
24 | 24 |
// Sad panda, we don't use Entity API, lets manually add access callbacks. |
25 | 25 |
$entity_info['access callback'] = 'ctools_metadata_no_hook_node_access'; |
26 | 26 |
break; |
27 |
|
|
27 | 28 |
case 'user': |
28 | 29 |
$entity_info['access callback'] = 'ctools_metadata_user_access'; |
29 | 30 |
break; |
31 |
|
|
30 | 32 |
case 'comment': |
31 | 33 |
if (module_exists('comment')) { |
32 | 34 |
$entity_info['access callback'] = 'ctools_metadata_comment_access'; |
33 | 35 |
} |
34 | 36 |
break; |
37 |
|
|
35 | 38 |
case 'taxonomy_term': |
36 | 39 |
if (module_exists('taxonomy')) { |
37 | 40 |
$entity_info['access callback'] = 'ctools_metadata_taxonomy_access'; |
38 | 41 |
} |
39 | 42 |
break; |
43 |
|
|
40 | 44 |
case 'taxonomy_vocabulary': |
41 | 45 |
if (module_exists('taxonomy')) { |
42 | 46 |
$entity_info['access callback'] = 'ctools_metadata_taxonomy_access'; |
... | ... | |
64 | 68 |
* |
65 | 69 |
* @throws EntityMalformedException |
66 | 70 |
* |
67 |
* @return boolean
|
|
71 |
* @return bool |
|
68 | 72 |
* TRUE if access is allowed, FALSE otherwise. |
69 | 73 |
*/ |
70 | 74 |
function ctools_metadata_no_hook_node_access($op, $node = NULL, $account = NULL) { |
Formats disponibles : Unified diff
Weekly update of contrib modules