You are here

function mailhandler_term_map in Mailhandler 5

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

Accept a taxonomy term name and replace with a tid. this belongs in taxonomy.module.

1 string reference to 'mailhandler_term_map'
mailhandler_process_message in ./mailhandler.module
Append default commands. Separate commands from body. Strip signature. Return a node object.

File

./mailhandler.module, line 350

Code

function mailhandler_term_map(&$term) {

  // provide case insensitive and trimmed map so as to maximize likelihood of successful mapping
  $term = db_result(db_query("SELECT tid FROM {term_data} WHERE LOWER('%s') LIKE LOWER(name)", trim($term)));
}