function cpn_update_7102 in Code per Node 7
Split the CSS & JS wrappers.
File
- ./
cpn.install, line 342 - Installation, schema and update hook implementations.
Code
function cpn_update_7102() {
foreach (array(
'css',
'js',
) as $type) {
$wrapper = variable_get('cpn_wrapper_' . $type, '');
if (!empty($wrapper)) {
variable_set('cpn_wrapper_block_' . $type, $wrapper);
variable_set('cpn_wrapper_node_' . $type, $wrapper);
}
variable_del('cpn_wrapper_' . $type);
}
drupal_set_message(t('The code wrappers have been split so that they may be customized separately for blocks and nodes.'));
}