You are here

function sweaver_update_7102 in Sweaver 7

File

./sweaver.install, line 102
Sweaver install file.

Code

function sweaver_update_7102() {
  $visibility_spec = array(
    'description' => 'Flag to indicate how to show blocks on pages. (0 = Show on all pages except listed pages, 1 = Show only on listed pages, 2 = Use custom PHP code to determine visibility)',
    'type' => 'int',
    'size' => 'tiny',
    'default' => 0,
  );
  $pages_spec = array(
    'description' => 'Contents of the "Pages" block; contains either a list of paths on which to include/exclude the block or PHP code, depending on "visibility" setting.',
    'type' => 'text',
    'size' => 'big',
  );
  db_add_field('sweaver_style', 'visibility', $visibility_spec);
  db_add_field('sweaver_style', 'pages', $pages_spec);
  db_add_field('sweaver_style_draft', 'visibility', $visibility_spec);
  db_add_field('sweaver_style_draft', 'pages', $pages_spec);
  db_change_field('sweaver_style', 'active', 'active', array(
    'description' => '0 => Disabled, 1 => Set as default, 2 => Enabled but not used by default',
  ));
}