What is this: "->" in Drupal?
This is a PHP Operator object. This is very poorly documented in the PHP manual. It allows you to refer to variables, constants, and methods of an object.
$a = $ObjectInstance->var; # get variable or constant $ObjectInstance->var2 = "string"; # set variable $ObjectInstance->method(); # invoke a method. This is an operator used in the scope of an object to access its variables and methods.
Imagine you have the following class:
class Object { protected $variable; public function setVariable($variable) { $this->variable = $variable; } public function getVariable() { return $this->variable; } } You can see that I am accessing variables within this class ( $this ) using the -> operator. When I instantiate, I access public methods / variables from the same scope using the same statement:
$object = new Object(); $object->setVariable('Hello world'); echo $object->getVariable(); // 'Hello world' In your case, $node represents an object and content is a public variable inside that object.