You are here

function panelizer_update_7107 in Panelizer 7.3

Add the css class and element title fields.

File

./panelizer.install, line 558
Install, update and uninstall functions for the panelizer module.

Code

function panelizer_update_7107() {
  $spec = array(
    'type' => 'varchar',
    'length' => '255',
    'description' => 'The CSS class this panel should use.',
    'default' => '',
  );
  db_add_field('panelizer_defaults', 'css_class', $spec);
  db_add_field('panelizer_entity', 'css_class', $spec);
  $spec = array(
    'type' => 'varchar',
    'length' => '255',
    'description' => 'The HTML element the title should use.',
    'default' => 'H2',
  );
  db_add_field('panelizer_defaults', 'title_element', $spec);
  db_add_field('panelizer_entity', 'title_element', $spec);
}