You are here

function data_natural_name in Data 6

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

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

2 calls to data_natural_name()
DataTable::adopt in includes/DataTable.inc
Let Data manage a table that already exists in the database.
data_views_data in ./data.views.inc
Implementation of hook_views_data().

File

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

Code

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