Révision 3753f249
Ajouté par Assos Assos il y a plus de 10 ans
htmltest/sites/all/modules/ctools/plugins/access/entity_field_value.inc | ||
---|---|---|
139 | 139 |
* Check for access. |
140 | 140 |
*/ |
141 | 141 |
function ctools_entity_field_value_ctools_access_check($conf, $context, $plugin) { |
142 |
if (!isset($context->data)) { |
|
143 |
// If the context doesn't exist -- for example, a newly added entity |
|
144 |
// reference is used as a pane visibility criteria -- we deny access. |
|
145 |
return FALSE; |
|
146 |
} |
|
147 |
|
|
142 | 148 |
list($parent, $entity_type, $bundle_type, $field_name) = explode(':', $plugin['name']); |
143 | 149 |
|
144 | 150 |
if ($field_items = field_get_items($entity_type, $context->data, $field_name)) { |
Formats disponibles : Unified diff
Weekly update of contrib modules