-
Book Overview & Buying
-
Table Of Contents
Drupal 7 First Look
To support the changes to text formats in Drupal 7, the Drupal API has been extended to allow modules to have additional interaction with the filter system. Modules can now define filters, alter existing filters, and handle filters being added, deleted, or changed. Let's look at each of the new hooks in more detail now.
hook_filter_format_delete($format, $fallback)
This hook allows you to react when a filter has been deleted from the system. If any content that you are maintaining with your modules uses the format which is being deleted, you should update the content to use a new format. The fallback format is guaranteed to be valid.
hook_filter_format_insert($format)
This hook allows your module to react when a new filter format has been created. You can use this opportunity to update any content you manage for the new format or any other options you deem necessary.
hook_filter_format_update($format...
Change the font size
Change margin width
Change background colour