Web hosting company - 146 CHAPTER 4 ADDING CONTRIBUTED MODULES Figure

146 CHAPTER 4 ADDING CONTRIBUTED MODULES Figure 4-20. The page timer and query log Using Developer Functions If you are writing code for Drupal, the following four functions can help you while you work: dprint($str): Works like the PHP function print( string arg )function (http:// php.net/print) but inside

 tags.    dprint_r($arr): Works like the PHP function bool print_r ( mixed expression  [, bool return] ) (http://php.net/print_r ) but inside
 tags.    ddebug_backtrace(): Works like the PHP function array debug_backtrace ( void )  (http://php.net/debug_backtrace) but inside
 tags.    devel_variable(): Outputs the global Drupal configuration variables array $config.  You can add these functions to the source code files or to text areas that are evaluated as  PHP with the PHP filter as tools for debugging.   Emptying the Cache   Something that every new Drupal developer learns is that the cache table in the database  can be emptied without ill effect to the integrity of the database or its data. In fact, when  you re programming certain elements, such as the hook_menu function for a module, it is  necessary to empty the cache from time to time. When developing Drupal, especially when  making changes to the hook_menu function of a module or when dealing with filtered text,  you usually need to clear the cache before your changes will become visible. Menus, variables, and other key elements are cached to improve the performance of the page-building  process.   The Devel module offers a convenient link for developers so that they don t need to keep   running database queries manually to clear the cache. With the Devel module enabled, an   Empty cache link appears in the main navigation menu (devel/cache/clear).    Note There is almost no reason to clear the cache if you are not developing Drupal modules. But if you  accidentally clear the cache, don t worry you haven t hurt anything.   
Note: In case you are looking for affordable and reliable webhost to host and run your business application check Vision ftp web hosting services

Leave a Reply