/** * Overrides ObjectValidateBase::publicFieldsInfo(). */ public function publicFieldsInfo() { $fields = parent::publicFieldsInfo(); FieldsInfo::setFieldInfo($fields['blocks'], $this)->setProperty('blocks')->setRequired(); FieldsInfo::setFieldInfo($fields['object_id'], $this)->setProperty('object_id')->setRequired(); return $fields; }
/** * Overrides ObjectValidateBase::publicFieldsInfo(). */ public function publicFieldsInfo() { $fields = parent::publicFieldsInfo(); unset($fields['group_type'], $fields['rid']); FieldsInfo::setFieldInfo($fields['gid'])->setRequired(FALSE); return $fields; }
public function publicFieldsInfo() { $fields = parent::publicFieldsInfo(); // Remove fields we don't to handle for now. unset($fields['group_access'], $fields['og_roles_permissions']); FieldsInfo::setFieldInfo($fields['purl'], $this)->setRequired()->setProperty('purl')->addCallback('validateSinglePurl'); return $fields; }
/** * Overrides ObjectValidateBase::publicFieldsInfo(). */ public function publicFieldsInfo() { $fields = parent::publicFieldsInfo(); FieldsInfo::setFieldInfo($fields['widget'], $this)->setProperty('widget')->addCallback('validateWidget'); FieldsInfo::setFieldInfo($fields['options'], $this)->setProperty('options')->addCallback('validateOptions'); FieldsInfo::setFieldInfo($fields['delta'], $this)->setProperty('delta')->addCallback('validateDelta'); return $fields; }