Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Drupal's core Menu module allows nodes to place menu links (linking to the node) into the menu. The Menu Link (Field) module however allows entities of any type to place menu links into the menu using a field.
It's often useful to provide two versions of a given string: one that's intended for human viewing and another that's intended for use in database queries, URLs, and so on.
In Drupal, this is generally known as a 'Name' and 'Machine name' pair. Drupal 7 even provides a prefab FormAPI element to simplify the process of entering these matched pairs.
Safeword exposes a custom FieldAPI field type that stores two strings using the name/machine name approach. It can be useful when generating PathAuto aliases, exposing Views arguments, and so on.
One common use is to not give users permission to 'Create and edit URL aliases' and instead give them access to a Safeword field which uses the node title as it's source. So that users can only edit a limited part of the path, keeping safe the other parts that your site features may rely on.
Provides a "boolean" field type with an additional state of "not set" in addition to the usual "true/false" or "on/off." A separate display string can be defined for each state.