How to remove colon from field label
Drupal 7 field module defines a field level template file, which defines the HTML structure of the field. We can use this file to override the display of field including changing how label will be display.
Get allowed values of select list field
Ever wanted to retrieve a list of allowed values of select list, here's a sample code:
<?php
$field = field_info_field('FIELD_NAME');
$allowed_values = list_allowed_values($field);
$field = field_info_field('FIELD_NAME');
$allowed_values = list_allowed_values($field);
Removing extra empty row in unlimited value field on node edit
In Drupal the normal functionality of multi-value field on node edit screen is like this, it adds one more extra row where user can add data if they want or leave as it is if don't.
Wha