You are here

function modal_page_update_modal_table in Modal 8.3

Same name and namespace in other branches
  1. 8.2 modal_page.install \modal_page_update_modal_table()
  2. 5.0.x modal_page.install \modal_page_update_modal_table()
  3. 4.0.x modal_page.install \modal_page_update_modal_table()
  4. 4.1.x modal_page.install \modal_page_update_modal_table()

Update Modal Page Table.

4 calls to modal_page_update_modal_table()
modal_page_update_40001 in ./modal_page.install
Created new field to choose label "Don't show again".
modal_page_update_40002 in ./modal_page.install
Created new field "Close Modal with ESC and Clicling Outside".
modal_page_update_8205 in ./modal_page.install
Create Auto Open Feature.
modal_page_update_8207 in ./modal_page.install
Created new field "Don't show again".

File

./modal_page.install, line 251
Install, update and uninstall functions for the Modal Page.

Code

function modal_page_update_modal_table(array $fields) {
  if (empty(\Drupal::service('database')
    ->schema()
    ->tableExists('modal'))) {
    return FALSE;
  }
  $database = \Drupal::service('database');
  $database
    ->update('modal')
    ->fields($fields)
    ->execute();
  return TRUE;
}