You are here

protected function HostingForm::isANewNode in Aegir Objects 7.3

Determine whether we're creating a new node, or editing an existing one.

File

classes/HostingForm.inc, line 75
The HostingForm class.

Class

HostingForm
@file The HostingForm class.

Code

protected function isANewNode() {
  return isset($this->form['nid']) && is_null($this->form['nid']['#value']);
}