You are here

private function Bundle::createLabel in Entity Construction Kit (ECK) 7.3

Same name and namespace in other branches
  1. 7.2 eck.classes.inc \Bundle::createLabel()

Create a label.

1 call to Bundle::createLabel()
Bundle::save in ./eck.classes.inc
Save the entity type.

File

./eck.classes.inc, line 519
Classes for all the different objects used in ECK.

Class

Bundle

Code

private function createLabel() {
  $name = $this->name;
  $pieces = explode("_", $name);
  $final = array();
  foreach ($pieces as $piece) {
    $final[] = ucfirst($piece);
  }
  $this->label = implode(" ", $final);
}