function media_library_install in Media Library 7
Implements hook_install().
File
- ./
media_library.install, line 24 - Install, update and uninstall functions for the Media Library module.
Code
function media_library_install() {
$schema = array();
media_library_schema_alter($schema);
$spec = $schema['file_managed']['fields']['library'];
$indexes_new = array(
'indexes' => $schema['file_managed']['indexes'],
);
// Add a 'library' column to the core {file_managed} table.
if (!db_field_exists('file_managed', 'library')) {
db_add_field('file_managed', 'library', $spec, $indexes_new);
}
}