function privatemsg_build_modes in Privatemsg 7
Same name and namespace in other branches
- 7.2 privatemsg.module \privatemsg_build_modes()
Implements hook_build_modes().
File
- ./
privatemsg.module, line 2379 - Allows users to send private messages to other users.
Code
function privatemsg_build_modes($obj_type) {
$modes = array();
if ($obj_type == 'privatemsg_message') {
$modes['message'] = t('Message');
}
return $modes;
}