Drupal
Creating custom fields using Drupal 7 field api
Submitted by litwol on Thu, 01/28/2010 - 06:03
** Work in progress **
This article describes which Drupal 7 field api hooks one must implement to create fully functional custom field. This field then may be usable on any fieldable object in Drupal 7.
// tells drupal which field(s) your module defines and implements
function hook_field_info() {}
// tells drupal which widgets your module defines and implements
// these widgets may be made available to other fields defined elsewhere (ex, core fields). but for our purpose i will describe how this hook interacts with hook_field_info()
function hook_field_widget_info() {}
- 3 comments
- Read more
- 2303 reads
