forked from nigelgbanks/objective_forms
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add api file and correct README. (#50)
* Add api file and correct README. * typo.
- Loading branch information
Showing
2 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* This file documents hooks provided by Objective Forms. | ||
*/ | ||
|
||
/** | ||
* Define a custom Drupal form property. | ||
* | ||
* @return array | ||
* Returns an associative array mapping property names to associative | ||
* arrays with all the data required to build a FormProperty class: | ||
* - "type": The type (file extension) of the file to include, e.g. "inc". | ||
* - "module": The machine name of the module where the code is located. | ||
* - "name": The name of the file, including its path within the module. | ||
* - "class": The name of the class defining the property. | ||
*/ | ||
function hook_objectify_properties() { | ||
return array( | ||
'#actions' => array( | ||
'type' => 'inc', | ||
'module' => 'module_name', | ||
'file' => 'includes/FileName', | ||
'class' => 'ClassName', | ||
), | ||
); | ||
} |