You are here

function privatemsg_disable_maxlength in Privatemsg 7.2

Same name and namespace in other branches
  1. 6.2 privatemsg.pages.inc \privatemsg_disable_maxlength()

Remove the maxlength attribute from a field.

1 string reference to 'privatemsg_disable_maxlength'
privatemsg_new in ./privatemsg.pages.inc
Form builder function; Write a new private message.

File

./privatemsg.pages.inc, line 380
User menu callbacks for Privatemsg.

Code

function privatemsg_disable_maxlength($element) {
  unset($element['#maxlength']);
  return $element;
}