5 * Update and install functions for FileField Sources.
9 * Implements hook_install().
11 function filefield_sources_install() {
12 // FileField Sources needs to load after both ImageField and FileField.
14 $file_weight = module_get_weight('file');
15 $image_weight = module_get_weight('image');
16 $weight = max(array($file_weight, $image_weight));
19 catch (Exception $e) {
22 module_set_weight('filefield_sources', $weight);