function js_injector_update_7002 in JS injector 7.2
Add fields for support of noscript tags.
File
- ./
js_injector.install, line 178 - js_injector.install
Code
function js_injector_update_7002(&$sandbox) {
$fields = array(
'noscript_regions' => array(
'type' => 'text',
'serialize' => TRUE,
'description' => 'A serialized array of theme regions where the noscript tag is injected.',
),
'noscript' => array(
'type' => 'text',
'size' => 'big',
'description' => 'The noscript code.',
),
);
foreach ($fields as $key => $spec) {
db_add_field('js_injector_rule', $key, $spec);
}
}