You are here

function fieldgroup_update_6004 in Content Construction Kit (CCK) 6.3

Same name and namespace in other branches
  1. 6.2 modules/fieldgroup/fieldgroup.install \fieldgroup_update_6004()

Add 'type' property for fieldgroups.

File

modules/fieldgroup/fieldgroup.install, line 260
Implementation of hook_install().

Code

function fieldgroup_update_6004() {
  if ($abort = content_check_update('fieldgroup')) {
    return $abort;
  }
  $ret = array();
  db_add_field($ret, 'content_group', 'group_type', array(
    'type' => 'varchar',
    'length' => 32,
    'not null' => TRUE,
    'default' => 'standard',
  ));
  $ret[] = update_sql("DELETE FROM {cache_content} WHERE cid='fieldgroup_data'");
  return $ret;
}