function media_library_schema_alter in Media Library 7
Implements hook_schema_alter().
1 call to media_library_schema_alter()
- media_library_install in ./
media_library.install - Implements hook_install().
File
- ./
media_library.install, line 11 - Install, update and uninstall functions for the Media Library module.
Code
function media_library_schema_alter(&$schema) {
$schema['file_managed']['fields']['library'] = array(
'description' => 'Boolean indicating whether the file should be included in the media library.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
);
$schema['file_managed']['indexes']['library'] = array(
'library',
);
}