You are here

function view_mode_page_update_7101 in View Mode Page 7.2

Same name and namespace in other branches
  1. 8.2 view_mode_page.install \view_mode_page_update_7101()

Add the entity_type field

File

./view_mode_page.install, line 74
Install the DB table for the View Mode Page module

Code

function view_mode_page_update_7101() {
  $schema = view_mode_page_module_schema();
  db_add_field('view_mode_page', 'entity_type', $schema['view_mode_page']['fields']['entity_type']);
  $update = db_update('view_mode_page');
  $update
    ->fields(array(
    'entity_type' => 'node',
  ))
    ->execute();
}