You are here

function signup_update_6200 in Signup 6.2

Create the {signup_panes} table, enable the signup_basic_form module, and add the basic form to all existing nodes.

File

./signup.install, line 528

Code

function signup_update_6200() {
  $ret = array();
  $schema = signup_schema();
  db_create_table($ret, 'signup_panes', $schema['signup_panes']);
  module_enable('signup_basic_form');
  $ret[] = db_query("INSERT INTO {signup_panes} (nid, pane_id, callback, weight) SELECT nid, 'basic', 'signup_basic_form_form', 0 FROM {signup}");
  $ret[] = array(
    'success' => TRUE,
    'query' => t('The Signup basic form module has been enabled and the basic "Name and Phone number" pane has been added to your existing signup-enabled content.'),
  );
  return $ret;
}