You are here

public function Notifications_Object::get_name in Notifications 7

Get object name (user name, node title, etc)

File

./notifications.object.inc, line 100
Drupal Notifications Framework - Default class file

Class

Notifications_Object
Wrapper for Drupal objects

Code

public function get_name() {
  if (!empty($this->name)) {
    return $this->name;
  }
  elseif ($this
    ->get_object()) {
    return $this
      ->object_name($this
      ->get_object());
  }
  else {
    return '';
  }
}