function rules_forms_update_7200 in Rules Forms Support 7.2
Updates from Rules Forms Support 7.x-1.x.
File
- ./
rules_forms.install, line 117 - Installation function for Rules Forms module.
Code
function rules_forms_update_7200() {
if (!db_table_exists('rules_forms')) {
drupal_install_schema('rules_forms');
}
$form_info = variable_get('rules_forms_form_info', array());
foreach ($form_info as $form_id => $info) {
db_insert('rules_forms')
->fields(array(
'form_id' => $form_id,
'rebuild' => 1,
'label' => $info['label'],
// We'll need to rebuild to get all of the form_state anyway.
'properties' => serialize(array()),
))
->execute();
}
variable_del('rules_forms_form_info');
}