Révision 560c3060
Ajouté par Julien Enselme il y a plus de 8 ans
drupal7/sites/all/modules/ctools/plugins/relationships/entity_from_field.inc | ||
---|---|---|
185 | 185 |
$loaded_to_entity = array_shift($loaded_to_entity); |
186 | 186 |
|
187 | 187 |
// Pass current user account and entity type to access callback. |
188 |
if (function_exists($to_entity_info['access callback']) && !call_user_func($to_entity_info['access callback'], 'view', $loaded_to_entity, $account, $to_entity)) {
|
|
188 |
if (isset($to_entity_info['access callback']) && function_exists($to_entity_info['access callback']) && !call_user_func($to_entity_info['access callback'], 'view', $loaded_to_entity)) {
|
|
189 | 189 |
return ctools_context_create_empty('entity:' . $to_entity, NULL); |
190 | 190 |
} |
191 | 191 |
else { |
Formats disponibles : Unified diff
Update ctools 1.7 -> 1.9