You are here

function flexiform_update_7005 in Flexiform 7

Add the builder field to flexiform.

File

./flexiform.install, line 295
Sets up the base table for our entity and a table to store information about the entity types.

Code

function flexiform_update_7005() {
  db_add_field('flexiform', 'builder', array(
    'description' => 'The builder class for this form',
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'default' => 'FlexiformFlexiform',
  ));

  // Update existing flexiform configurations.
  db_update('flexiform')
    ->fields(array(
    'builder' => 'FlexiformBuilderFlexiform',
  ))
    ->execute();
}