You are here

function crumbs_Admin_ElementObject_WeightsAbstract::validate in Crumbs, the Breadcrumbs suite 7.2

Callback for $element['#element_validate']

Parameters

array $element:

array $form_state:

Return value

bool|void

Overrides crumbs_Admin_ElementObject_Abstract::validate

File

lib/Admin/ElementObject/WeightsAbstract.php, line 13

Class

crumbs_Admin_ElementObject_WeightsAbstract

Code

function validate(&$element, &$form_state) {

  // We need to unset the NULL values from child elements we created.
  $weights = $element['#value'];
  form_set_value($element, $weights, $form_state);
}