18.10.2016 Views

Drupal 7 Module Development

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The following is how this text field will appear when rendered by <strong>Drupal</strong> in the<br />

default admin theme:<br />

Chapter 5<br />

Moving on to the following elements, you can see this pattern repeat itself. For<br />

instance, the e-mail body field of type '#textarea' implements the '#rows' and<br />

'#columns' properties, just like the matching HTML attributes for a textarea. The<br />

checkbox element (indicating whether the admin should be sent a BCC on outgoing<br />

e-mails) and submit button are equally straightforward to operate.<br />

When we visit the URL that we registered earlier (admin/config/people/user_warn),<br />

we get the form rendered as seen in the following screenshot:<br />

[ 131 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!