Mercurial > hg > isophonics-drupal-site
comparison core/modules/node/node.install @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
11:bfffd8d7479a | 12:7a779792577d |
---|---|
253 function node_update_8400() { | 253 function node_update_8400() { |
254 $schema = drupal_get_module_schema('node', 'node_access'); | 254 $schema = drupal_get_module_schema('node', 'node_access'); |
255 $schema['fields']['realm']['description'] = 'The realm in which the user must possess the grant ID. Modules can define one or more realms by implementing hook_node_grants().'; | 255 $schema['fields']['realm']['description'] = 'The realm in which the user must possess the grant ID. Modules can define one or more realms by implementing hook_node_grants().'; |
256 Database::getConnection()->schema()->changeField('node_access', 'realm', 'realm', $schema['fields']['realm']); | 256 Database::getConnection()->schema()->changeField('node_access', 'realm', 'realm', $schema['fields']['realm']); |
257 } | 257 } |
258 | |
259 /** | |
260 * Run a node access rebuild, if required. | |
261 */ | |
262 function node_update_8401() { | |
263 // Get the list of node access modules. | |
264 $modules = \Drupal::moduleHandler()->getImplementations('node_grants'); | |
265 // If multilingual usage, then rebuild node access. | |
266 if (count($modules) > 0 && \Drupal::languageManager()->isMultilingual()) { | |
267 node_access_needs_rebuild(TRUE); | |
268 } | |
269 } |