3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Add hook_farm_asset_property() for modules to declare the properties they manage.

This commit is contained in:
Michael Stenta 2017-11-27 16:24:31 -05:00
parent 11c82e337e
commit 7721bbb9b4

View file

@ -0,0 +1,40 @@
<?php
/**
* @file
* Hooks provided by farm_asset_property.
*
* This file contains no working PHP code; it exists to provide additional
* documentation for doxygen as well as to document hooks in the standard
* Drupal manner.
*/
/**
* @defgroup farm_asset_property Farm asset property module integrations.
*
* Module integrations with the farm_asset_property module.
*/
/**
* @defgroup farm_asset_property_hooks Farm asset property's hooks
* @{
* Hooks that can be implemented by other modules in order to extend farm_asset_property.
*/
/**
* Defines farm asset properties maintained by this module.
*
* @return array
* Returns an array of farm asset property names.
*/
function hook_farm_asset_property() {
return array(
'farm_grazing_animal_type',
'farm_grazing_planned_arrival',
'farm_grazing_planned_departure',
);
}
/**
* @}
*/