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 Drupal 7 First Look
  • Table Of Contents Toc
Drupal 7 First Look

Drupal 7 First Look

4.5 (4)
close
close
Drupal 7 First Look

Drupal 7 First Look

4.5 (4)

Overview of this book

Drupal 7 contains features for which site administrators have been clamoring for years, including support for fields, an improved administration interface, better database support, improved theming, and more. You could of course make a laborious search on sites, blogs, and many online tutorials that would promise to update you about every new feature, but there's an even better way to know all about Drupal 7's new features: Drupal 7 First Look is the first and only book that covers all of the fantastic new features in Drupal 7 in depth and covers the process of upgrading your Drupal 6 site to Drupal 7. If you've used Drupal 6 and want to use Drupal 7, you need this book.Drupal 7 First Look takes an in-depth look into all of the major new features in Drupal 7 so you can quickly take full advantage of Drupal 7. It also assists you in upgrading your site to Drupal 7. Some of the new features in Drupal 7 include: Fields API, based on Drupal 6 CCK, which allows you to easily build your own content types Improved user interface for administering your website Built-in support for working with images and files Improved security for the site and users of the site Completely rewritten database layer DBTNG to make working with the database easier and more secure. Improved API for custom module development and user interface theming
Table of Contents (13 chapters)
close
close
Drupal 7 First Look
Credits
About the Author
About the Reviewer
Preface
1
Index

Drupal hook changes


After you have updated your .info file, you can start to revise the code of your module. In this section, we will review some of the major changes to the general Drupal API before diving into specific key functional areas.

Hooks split by op code

In Drupal 7, several hooks from Drupal 6 have been split into multiple hooks based on the Drupal 6 op code. For example, the Drupal 6 hook_node_type: becomes hook_node_type_delete, hook_node_type_insert, and hook_node_type_update in Drupal 7. This makes the code implementing the hooks more efficient as well as making it easier for developers to easily find out which hooks can be implemented. The hooks that have been split in this manner include:

  • hook_aggregator

  • hook_block

  • hook_comment

  • hook_menu_link

  • hook_node_type

  • hook_search

  • hook_user

  • hook_nodeapi—this was split into hook_node_ hooks

More information about each of these hooks can be found at: http://api.drupal.org/api/7. To convert these hooks to Drupal 7, you will need...

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.
Drupal 7 First Look
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