Révision 9df8b457
Ajouté par Assos Assos il y a presque 9 ans
drupal7/sites/all/modules/views_bulk_operations/actions/modify.action.inc | ||
---|---|---|
82 | 82 |
// The wrapper will automatically modify $entity itself. |
83 | 83 |
$wrapper = entity_metadata_wrapper($context['entity_type'], $entity); |
84 | 84 |
foreach ($context['selected']['properties'] as $key) { |
85 |
if (!$wrapper->$key->access('update')) { |
|
86 |
// No access. |
|
87 |
continue; |
|
88 |
} |
|
89 |
|
|
85 | 90 |
if (in_array($key, $context['append']['properties'])) { |
86 | 91 |
$old_values = $wrapper->$key->value(); |
87 | 92 |
$wrapper->$key->set($context['properties'][$key]); |
... | ... | |
134 | 139 |
if (!empty($properties)) { |
135 | 140 |
$form['properties'] = array( |
136 | 141 |
'#type' => 'fieldset', |
137 |
'#title' => 'Properties',
|
|
142 |
'#title' => t('Properties'),
|
|
138 | 143 |
); |
139 | 144 |
$form['properties']['show_value'] = array( |
140 | 145 |
'#suffix' => '<div class="clearfix"></div>', |
... | ... | |
298 | 303 |
$token_type = str_replace('_', '-', $entity_type); |
299 | 304 |
$form['tokens'] = array( |
300 | 305 |
'#type' => 'fieldset', |
301 |
'#title' => 'Available tokens',
|
|
306 |
'#title' => t('Available tokens'),
|
|
302 | 307 |
'#collapsible' => TRUE, |
303 | 308 |
'#collapsed' => TRUE, |
304 | 309 |
'#weight' => 998, |
Formats disponibles : Unified diff
Weekly update of contrib modules