You are here

public function FlexiformElementField::setWeight in Flexiform 7

Set the weight of this form element.

Parameters

int $weight:

Overrides FlexiformElement::setWeight

File

includes/element/field.element.inc, line 125
Contains FlexiformElementField class.

Class

FlexiformElementField
Class for Field API elements.

Code

public function setWeight($weight) {
  parent::setWeight($weight);
  $this->instance['widget']['weight'] = $weight;
}