You are here

function media_entity_update_8003 in Media entity 8.2

Same name and namespace in other branches
  1. 8 media_entity.install \media_entity_update_8003()

Ensure Entity API is installed.

File

./media_entity.install, line 286
Install, uninstall and update hooks for Media entity module.

Code

function media_entity_update_8003() {
  if (_media_entity_check_entity_version() === REQUIREMENT_ERROR) {
    throw new UpdateException('Entity API >= 8.x-1.0-alpha3 (drupal.org/project/entity) module is now a dependency and needs to be installed before running updates.');
  }
}