Implement hook_hook_info() to allow farm_constraint hooks to be put into [modulename].farm_constraint.inc.

This commit is contained in:
Michael Stenta 2017-11-22 12:06:49 -05:00
parent 8a53e71ce8
commit 918ec851c1
1 changed files with 10 additions and 0 deletions

View File

@ -5,6 +5,16 @@
* Farm constraint module.
*/
/**
* Implements hook_hook_info().
*/
function farm_constraint_hook_info() {
$hooks['farm_constraint'] = array(
'group' => 'farm_constraint',
);
return $hooks;
}
/**
* Function for checking if a constraint exists (if a record is referenced by
* other records).