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.

Chapter 11<br />

As you can see, there is a large warning indicating that in order to change this<br />

module's settings, you must click the Override defaults button. This can help<br />

prevent users from inadvertently changing your image settings, thus throwing off<br />

the content and theme of your site. Once the defaults have been overridden, the user<br />

will be able to modify the settings as they wish.<br />

This leads us to the second useful aspect of implementing your styles in code—no<br />

matter how much a style is modified; it can always be reverted back to its original<br />

state with the click of the mouse. Observe the change on the style list after a user<br />

has overridden a default style:<br />

As you can see, this style has been marked as Overridden and it has gained a revert<br />

link! Clicking the revert link takes you to a confirmation screen, and if you agree<br />

to revert, the style's settings will be reset back to their original state as defined in<br />

the module.<br />

[ 341 ]

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

Saved successfully!

Ooh no, something went wrong!