You are here

function privatemsg_check_format_access in Privatemsg 7

Same name and namespace in other branches
  1. 7.2 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_new in ./privatemsg.pages.inc

File

./privatemsg.pages.inc, line 525
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;
}