Drupal is a registered trademark of Dries Buytaert
Better Exposed Filters 7.1.3 Minor update available for module better_exposed_filters (7.1.3). Resource Description Framework (RDF) 4.0.0 Major update available for module rdf (4.0.0). Mailer Plus (DSM+) 2.0.2 Minor update available for module symfony_mailer (2.0.2). Simple hierarchical select 2.0.6 Minor update available for module shs (2.0.6). UI Styles 8.x-1.21 Minor update available for module ui_styles (8.x-1.21). Chaos Tool Suite (ctools) Module ctools crossed 1,000 active installs. Webtheme 11.0.1 Minor update available for theme webtheme (11.0.1). Webpage 11.0.1 Minor update available for module webpage (11.0.1). Web Releases 11.0.2 Minor update available for module webreleases (11.0.2). Panels 8.x-4.10 Module panels updated after 15 months of inactivity (8.x-4.10).

It's often useful to provide two versions of user input - one that's intended for human viewing and another that's for use in database queries, URLs, and so on. In Drupal, this is generally known as a 'Name' and 'Machine name' pair. Drupal even provides a FormAPI element to simplify the process of entering these matched pairs.

Safeword provides a custom 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.

Features

Can use the node Title or taxonomy term name field as the source of the machine name.

Can provide it's own text field as the source of the machine name.

Machine name field is shown next to the source field, clicking 'Edit' makes the machine name editable in it's own field.

Option to show a live preview of the full path to the node or term while the machine name part of it is being edited.

Option to require machine names to be unique per content type or vocabulary.

Option to convert accented characters like øéåî to Roman letter equivalents, uses integration with the Transliteration module.

Can remove HTML intelligently without leaving 'p', 'div', etc. in the machine name.

Similar Modules

Machine Name

Machine Name module adds a field type into which the user enters a machine name, it's main function is to validate that the input conforms to the machine name format.

Safeword module is different to Machine Name module as it provides a standard text field and when text is input displays a matching machine name field which automatically converts the text into a machine name formatted version, which can also be hand edited.

Activity

Total releases
2
First release
Jul 2026
Latest release
1 hour ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
2.0.1 Stable Jul 25, 2026
2.0.x-dev Dev Jul 25, 2026