function multiple_email_install in Multiple E-mail Addresses 2.x
Same name and namespace in other branches
- 5 multiple_email.install \multiple_email_install()
- 6 multiple_email.install \multiple_email_install()
- 7 multiple_email.install \multiple_email_install()
Implements hook_install().
Imports current users' emails.
File
- ./
multiple_email.install, line 13 - Install file for multiple_email module
Code
function multiple_email_install() {
// @TODO fix and re-enable
// db_query("
// INSERT INTO {multiple_email}
// (uid, email, time_registered, confirmed)
// SELECT
// uid,
// mail,
// created,
// 1
// FROM {users}
// WHERE uid != 0
// AND mail != ''
// GROUP BY mail
// ");
}