You are here

function webform_update_7412 in Webform 7.4

Split webform_node_types as content type specific.

File

./webform.install, line 1851
Webform module install/schema hooks.

Code

function webform_update_7412() {
  $types = variable_get('webform_node_types', array(
    'webform',
  ));
  foreach ($types as $type) {
    variable_set('webform_node_' . $type, TRUE);
  }
  variable_del('webform_node_types');
}