You are here

function modal_page_is_entity_version in Modal 8.2

Same name and namespace in other branches
  1. 8.3 modal_page.module \modal_page_is_entity_version()

Check if Modal Page use Entity Version.

2 calls to modal_page_is_entity_version()
modal_page_page_attachments in ./modal_page.module
Implements hook_page_attachments().
modal_page_preprocess_html in ./modal_page.module
Implements hook_preprocess_html().

File

./modal_page.module, line 141
Main file for the Modal Page.

Code

function modal_page_is_entity_version() {
  $schema_version = drupal_get_installed_schema_version('modal_page');
  if (!empty($schema_version) && $schema_version <= 8000) {
    return FALSE;
  }
  return TRUE;
}