Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Drupal 6 Module Development
  • Table Of Contents Toc
  • Feedback & Rating feedback
Learning Drupal 6 Module Development

Learning Drupal 6 Module Development

4.3 (16)
close
close
Learning Drupal 6 Module Development

Learning Drupal 6 Module Development

4.3 (16)

Overview of this book

Table of Contents (14 chapters)
close
close
Learning Drupal 6 Module Development
Credits
About the Author
About the Reviewers
Preface

Creating Filters and an Input Format


Earlier, we created a new content type for the news brief that will be included at the top of each site news message.

However, there are a few things that we want to change about the content of a news brief node:

  1. 1. When we send the content out in an email message, we want to make sure that the HTML is removed from the news brief. In short, we want plain text. Drupal's check_plain() function seems a likely candidate for this task, but it escapes HTML instead of removing it. We want to remove the HTML.

  2. 2. There are a couple of common pieces of information that will likely appear in all of our content, but which we might want to change periodically. For example, the greeting and the name of the newsletter. We want to create placeholders for this information, and have Drupal replace the placeholders with meaningful text as needed.

The first task involves removing unwanted content. The second task involves adding content. But both of these can be done with filters...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning Drupal 6 Module Development
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon