Same name in other branches
- 5.0.x advagg.install \advagg_install()
- 6.0.x advagg.install \advagg_install()
- 7.x-1.x advagg.install \advagg_install()
- 8.x-2.x advagg.install \advagg_install()
- 8.x-3.x advagg.install \advagg_install()
- 8.x-4.x advagg.install \advagg_install()
Implements hook_install().
Fichier
-
./
advagg.install, line 16
Code
function advagg_install() {
$tables = array(
'advagg_aggregates' => array(
'aggregate_filenames_hash',
'filename_hash',
),
'advagg_aggregates_versions' => array(
'aggregate_filenames_hash',
'aggregate_contents_hash',
),
'advagg_files' => array(
'filename_hash',
'content_hash',
),
);
$schema = advagg_schema();
foreach ($tables as $table => $fields) {
// Change utf8_bin to ascii_bin.
advagg_install_change_table_collation($table, $fields, 'ascii_bin', $schema[$table]['fields']);
}
// New install gets a locked admin section.
variable_set('advagg_admin_mode', 0);
}