watchdog.inc 554 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * @todo add option to not record watchdog messages for each user created
  4. * on large imports user import could add a lot of rows to the watchdog table
  5. */
  6. /**
  7. * Implementation of hook_user_import_after_save().
  8. */
  9. function watchdog_user_import_after_save($settings, $account, $password, $fields, $updated) {
  10. if (empty($updated)) {
  11. watchdog('user', 'New user: %name %email.', array('%name' => $account->name, '%email' => '<' . $account->mail . '>'), WATCHDOG_NOTICE, l(t('edit'), 'user/' . $account->uid . '/edit'));
  12. }
  13. return;
  14. }