User6.php

  1. 8.0.x lib/Drush/User/User6.php
  2. 7.x lib/Drush/User/User6.php

Namespace

Drush\User

Classes

Namesort descending Description
User6

File

lib/Drush/User/User6.php
View source
  1. <?php
  2. namespace Drush\User;
  3. class User6 extends User7 {
  4. /**
  5. * {inheritdoc}
  6. */
  7. public function create($properties) {
  8. $account = user_save(NULL, $properties, NULL);
  9. return new UserSingle6($account);
  10. }
  11. /**
  12. * {@inheritdoc}
  13. */
  14. public function load_by_name($name) {
  15. return user_load(array('name' => $name));
  16. }
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public function load_by_mail($mail) {
  21. return user_load(array('mail' => $mail));
  22. }
  23. }