function farm_asset_install in farmOS 7
Implements hook_enable().
File
- modules/
farm/ farm_asset/ farm_asset.install, line 11 - Farm asset install.
Code
function farm_asset_install() {
/**
* Set the weight of this module to 1.
*
* We do this so that our hook_views_data_alter() fires after the taxonomy
* module's hook, because we need to alter it.
*
* @see farm_asset_views_data_alter()
*/
db_query("UPDATE {system} SET weight = 1 WHERE name = 'farm_asset'");
}