You are here

function data_natural_name in Data 8

Same name and namespace in other branches
  1. 6 data.module \data_natural_name()
  2. 7 data.module \data_natural_name()

Helper function to create a natural name. underscored_name -> Underscored name

1 call to data_natural_name()
Table::adopt in src/Table.php
Let Data manage a table that already exists in the database.

File

./data.module, line 237
Hooks and API functions for data module.

Code

function data_natural_name($name) {
  return ucfirst(strtolower(str_replace('_', ' ', $name)));
}