You are here

function data_natural_name in Data 7

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

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

3 calls to data_natural_name()
DataTable::adopt in includes/DataTable.inc
Let Data manage a table that already exists in the database.
data_get_table_field_views_data in ./data.views.inc
Get the hook_views_data() declaration for a field and handler type.
data_views_data in ./data.views.inc
Implements hook_views_data().

File

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

Code

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