friendly_register.api.php 586 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * @file
  4. * Hooks provided by the friendly_register module.
  5. */
  6. /**
  7. * @addtogroup hooks
  8. * @{
  9. */
  10. /**
  11. * Allows you to provide your own validation routines for email addresses
  12. * beyond the valid_email_address() call.
  13. *
  14. * @param string $address
  15. *
  16. * @return bool
  17. */
  18. function hook_validate_email_address($address) {
  19. return TRUE;
  20. }
  21. /**
  22. * Allows you to provide your own validation routines for the user name.
  23. *
  24. * @param string $username
  25. *
  26. * @return bool
  27. */
  28. function hook_validate_user_name($username) {
  29. return TRUE;
  30. }
  31. /**
  32. * @} End of "addtogroup hooks".
  33. */