function better_statistics_update_7101 in Better Statistics 7
Update the list of statistics files to be auto-loaded.
File
- ./
better_statistics.install, line 35 - Install and uninstall functions for the Better Statistics module.
Code
function better_statistics_update_7101() {
// This doesn't need to run if the user already saved the upgrade form.
$already_ran = variable_get('better_statistics_active_incs', FALSE);
if (!$already_ran) {
// Load the admin.inc file.
module_load_include('inc', 'better_statistics', 'better_statistics.admin');
// Call the update field function to save off active incs.
// This is necessary for existing installations of this module that already
// use custom fields from other modules. The way their inc files was loaded
// was changed; this ensures they will be loaded properly.
_better_statistics_update_fields();
}
}