function elasticsearch_connector_update_7100 in Elasticsearch Connector 7
Same name and namespace in other branches
- 7.5 elasticsearch_connector.install \elasticsearch_connector_update_7100()
- 7.2 elasticsearch_connector.install \elasticsearch_connector_update_7100()
Implements hook_update_N().
Update permissions.
File
- ./
elasticsearch_connector.install, line 128 - The installtion file for elasticsearch_connector module.
Code
function elasticsearch_connector_update_7100(&$sandbox) {
db_update('role_permission')
->fields(array(
'permission' => 'administer elasticsearch connector',
))
->condition('permission', 'adminiser elasticsearch connector')
->execute();
}