Book Image

Drupal for Education and E-Learning - Second Edition - Second Edition

Book Image

Drupal for Education and E-Learning - Second Edition - Second Edition

Overview of this book

As social networks become more popular, their role in the classroom has come under scrutiny. Drupal offers a wide variety of useful tools for educators. Within a single Drupal site, you can set up social bookmarking, podcasting, video hosting, formal and informal groups, rich user profiles, and other features commonly associated with social web communities. "Drupal for Education and E-Learning - Second Edition" teaches you how to create your own social networking site to advance teaching and learning goals in the classroom, while giving you complete control over features and access. Communicate with students, share learning resources, and track assignments through simple tasks with this hands-on guide.In this book you will learn to install and configure the default Drupal distribution and then extend it to include blogs, bookmarks, a media sharing platform, and discussion forums. The book also covers how to organize your site to easily track student work on the site, and how to control who has access to that information. Additionally, it teaches you how to make the site easy to use, how to maintain the site, and how to ask for and receive help in the Drupal community.
Table of Contents (23 chapters)
Drupal for Education and E-Learning - Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using code snippets to track student progress


Code snippets are small chunks of PHP code that can be embedded in a page. Using PHP snippets offers a great deal of flexibility, but they should also be used with extreme care. To start, the right to embed PHP snippets should only be given to trusted users who actually know PHP. A poorly formed PHP snippet has the potential to bring down a site; a malicious user with the rights to use PHP snippets can also wreak havoc. However, when used appropriately, the PHP snippets are a powerful tool.

Enabling PHP snippets

To enable selected users to embed PHP snippets, we first need to enable the PHP filter module. To enable this module, click on the Modules link or navigate to admin/modules. In the Core section, enable the PHP filter module. Click on the Save configuration button to save the changes.

Then, click on Configuration | Text formats or navigate to admin/config/content/formats.

Note

Configuring text formats is also discussed in Chapter 4, Creating...