function statistics_advanced_update_6002 in Statistics Advanced 6
Unfilter the counter_node_types variable.
File
- ./
statistics_advanced.install, line 65 - Install and uninstall schema and functions for the statistics_advanced module.
Code
function statistics_advanced_update_6002() {
$counter_node_types = variable_get('statistics_advanced_counter_node_types', array());
$node_types = array_keys(node_get_types('names'));
$result = array();
foreach ($node_types as $node_type) {
if (in_array($node_type, $counter_node_types)) {
$result[$node_type] = $node_type;
}
else {
$result[$node_type] = 0;
}
}
variable_set('statistics_advanced_counter_node_types', $result);
return array();
}