function privatemsg_check_format_access in Privatemsg 7.2
Same name and namespace in other branches
- 7 privatemsg.pages.inc \privatemsg_check_format_access()
After build callback; Hide format widget if user doesn't have permission.
1 string reference to 'privatemsg_check_format_access'
- _privatemsg_form_base_fields in ./
privatemsg.pages.inc - Returns the common fields of the reply and new form.
File
- ./
privatemsg.pages.inc, line 599 - User menu callbacks for Privatemsg.
Code
function privatemsg_check_format_access($element) {
if (isset($element['format'])) {
$element['format']['#access'] = privatemsg_user_access('select text format for privatemsg');
}
return $element;
}