Further modules included.
[yaffs-website] / web / modules / contrib / filefield_sources / filefield_sources.install
1 <?php
2
3 /**
4  * @file
5  * Update and install functions for FileField Sources.
6  */
7
8 /**
9  * Implements hook_install().
10  */
11 function filefield_sources_install() {
12   // FileField Sources needs to load after both ImageField and FileField.
13   try {
14     $file_weight = module_get_weight('file');
15     $image_weight = module_get_weight('image');
16     $weight = max(array($file_weight, $image_weight));
17     $weight++;
18   }
19   catch (Exception $e) {
20     $weight = 5;
21   }
22   module_set_weight('filefield_sources', $weight);
23 }