This project is not covered by Drupal’s security advisory policy.

Field Remove Item


What it does:

Adds a "Remove" checkbox option button on each item of a multivalue field.

Once checked by the user, the item is dynamically removed via Ajax callback.

How to Install:

Just enable it as you would normally do with any other module and its done.
All the multivalue fields will automatically get the remove checkbox option on
their field items.

For Developers:

If you need Field Remove Item to add no remove button under some conditions, you can do your logic checking with hook_item_exclude_field_types_alter().

/**
 * Implements hook_field_remove_item_exclude_field_types_alter().
 */
function MYMODULE_field_remove_item_exclude_field_types_alter(&$types) {
  if (MY_CONDITION) {
    // Add a new field type to the list of field types for Field Remove Item to 
    // ignore.
    $types[] = 'MY_FIELD_TYPE';
  }
}

Project information

Releases