You are here

function fieldable_panels_panes_update_7106 in Fieldable Panels Panes (FPP) 7

Add language column.

File

./fieldable_panels_panes.install, line 304
Fieldable Panels Panes install file.

Code

function fieldable_panels_panes_update_7106() {

  // Make sure to add language field.
  if (!db_field_exists('fieldable_panels_panes', 'language')) {
    db_add_field('fieldable_panels_panes', 'language', array(
      'description' => 'The {languages}.language of this entity.',
      'type' => 'varchar',
      'length' => 12,
      'not null' => TRUE,
      'default' => '',
    ));
  }
}