You are here

public function FlexiformElement::setWeight in Flexiform 7

Set the weight of this form element.

Parameters

int $weight:

1 call to FlexiformElement::setWeight()
FlexiformElementField::setWeight in includes/element/field.element.inc
Set the weight of this form element.
1 method overrides FlexiformElement::setWeight()
FlexiformElementField::setWeight in includes/element/field.element.inc
Set the weight of this form element.

File

includes/flexiform.element.inc, line 158
Controller class for flexiform elements.

Class

FlexiformElement
Base class for all FlexiformElements

Code

public function setWeight($weight) {
  $this->weight = $weight;
}