In one of the projects I worked on recently, we had to use the Drupal date module to display the date field in a custom form. This modules adds a description field that is not always wanted. It can be removed using the following code snippet in your custom module.

If you are using Drupal’s Bootstrap base theme the description field becomes the “data-original-title” attribute on the input field, that gets turned into a pretty cool popover, however in our case we didn’t need it. Using the code above I was able to remove it.

Lehel holds a BS in Computer science and works as Front End Engineer. He enjoys discovering life hacks and hacks in general. Among many other things he is interested in topics such as Consciousness, Philosophy, Economy and Game theory.