Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Jelmer85 on
Hi!
I made one module before but am struggling with my next project.
Goal: make a widget for the geolocation field that allows for input through HTML5 geopositioning.
I'm planning to implement
- geolocationwidget_field_widget_info()
- geolocationwidget_field_widget_form()
So far I have
function geolocationwidget_field_widget_info() {
return array(
'geolocation_text' => array(
'label' => t('Test Test'),
'field types' => array('geolocation_latlng'),
),
);
}
But nothing shows up :
http://i.imgur.com/dFJ6O8p.png
I'm expecting to see "Test test"..