You are here

public function FlexiformElementUserName::toSettingsArray in Flexiform 7

Convert this object into a settings array.

Overrides FlexiformElement::toSettingsArray

File

includes/element/user_name.element.inc, line 148
Contains class for the User name element.

Class

FlexiformElementUserName
Class to add the node title field to a form.

Code

public function toSettingsArray() {
  $settings = parent::toSettingsArray();
  if (isset($this->settings['email_registration'])) {
    $settings['email_registration'] = $this->settings['email_registration'];
  }
  if (isset($this->settings['default_value'])) {
    $settings['default_value'] = $this->settings['default_value'];
  }
  return $settings;
}