function file_aliases_install in File Aliases 6
Same name and namespace in other branches
- 5 file_aliases.install \file_aliases_install()
- 7 file_aliases.install \file_aliases_install()
Implements hook_install().
File
- ./
file_aliases.install, line 25 - Contains installation functions for the File Aliases module.
Code
function file_aliases_install() {
db_add_field($ret = array(), 'filefield_paths', 'filealias', array(
'type' => 'text',
'size' => 'medium',
'not null' => TRUE,
'serialize' => TRUE,
));
// Adjust module weight.
db_query("UPDATE {system} SET weight = 1 WHERE name = 'file_aliases'");
}