You are here

function mailhandler_get_mailbox in Mailhandler 7

Same name and namespace in other branches
  1. 5 mailhandler.module \mailhandler_get_mailbox()
  2. 6 mailhandler.module \mailhandler_get_mailbox()

Fetch data for a specific mailbox from the database.

TODO: remove this callback now that we have mailhandler_mailbox_load which is also a menu loader, though, there are other modules that may depend on this legacy callback, like "mail comment"

1 call to mailhandler_get_mailbox()
mailhandler_add_edit_mailbox in ./mailhandler.admin.inc
Return a form for editing or creating an individual mailbox.

File

./mailhandler.module, line 180

Code

function mailhandler_get_mailbox($mid) {
  return db_fetch_array(db_query("SELECT * FROM {mailhandler} WHERE mid = %d", $mid));
}