function node_registration_update_12 in Node registration 7
Enable nr_fields IF private fields are being used anywhere.
File
- ./
node_registration.install, line 328 - Install, uninstall, enable and disable hooks and schema.
Code
function node_registration_update_12() {
$count = db_query('SELECT COUNT(1) FROM {node_registration_node} WHERE private_fields <> 0');
if ($count) {
module_enable(array(
'nr_fields',
));
}
}