LiTWol @ Oleg Terenchuk

  • Contact
  • About me

User login

What is OpenID?
To prevent automated spam submissions leave this field empty.
  • Log in using OpenID
  • Cancel OpenID login
  • Request new password

litwol's tweets

  • Failure is a success at ruling out an incorrect option — 1 year 4 weeks ago
  •  
  • 1 of 9
  • ››
more
Home

field api

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
  • 2304 reads
Tags:
  • Drupal
  • Drupal 7
  • field api
Syndicate content

Recent posts

  • Developing PHP in VIM - VIM IDE for PHP
  • Creating custom fields using Drupal 7 field api
  • Creating 3d cube movieClip using Sprites and animating rotation through ActionsScript 3.0
  • Adding sprite from inside an external class onto stage and animating it using arrow key movement.
  • Playing with flash keyboard click events
  • Script to benchmark API execution time.
  • Very good dvcs guide
  • High throughput web architecture with drupal - *For authenticated users*
  • About me - Oleg Terenchuk
  • Note to self
  • Pre-generating drupal forms
  • Change memcached admin stats page
  • The cult of done

LiTWoL © Oleg Terenchuk - Hosted on Linode.com 360

I love Smashing Magazine!
Fervens Drupal theme by Leow Kah Thong. Designed by Design Disease and brought to you by Smashing Magazine.