Projet

Général

Profil

Révision a192dc0b

Ajouté par Assos Assos il y a environ 8 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/feeds/plugins/FeedsUserProcessor.inc
37 37
   * Creates a new user account in memory and returns it.
38 38
   */
39 39
  protected function newEntity(FeedsSource $source) {
40
    $account = new stdClass();
40
    $account = parent::newEntity($source);
41 41
    $account->uid = 0;
42 42
    $account->roles = array_filter($this->config['roles']);
43 43
    $account->status = $this->config['status'];
44

  
44 45
    return $account;
45 46
  }
46 47

  
......
59 60
   * Validates a user account.
60 61
   */
61 62
  protected function entityValidate($account) {
63
    parent::entityValidate($account);
64

  
62 65
    if (empty($account->name) || empty($account->mail) || !valid_email_address($account->mail)) {
63 66
      throw new FeedsValidationException(t('User name missing or email not valid.'));
64 67
    }

Formats disponibles : Unified diff