function modal_page_update_modal_table in Modal 8.2
Same name and namespace in other branches
- 8.3 modal_page.install \modal_page_update_modal_table()
- 5.0.x modal_page.install \modal_page_update_modal_table()
- 4.0.x modal_page.install \modal_page_update_modal_table()
- 4.1.x modal_page.install \modal_page_update_modal_table()
Update Modal Page Table.
2 calls to modal_page_update_modal_table()
- 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 260 - 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;
}