PHP snippets. Last updated October 3, 2011.
Created by LeeHunter on November 29, 2005.Edited by JuliaKM, silverwing, Jody Lynn, sepeck. Log in to edit this page. This section contains snippets of PHP that you can paste into your Drupal pages, blocks or themes. Often a single PHP block or a single PHP page does exactly what you want, where a module is pure overkill, or just doesn't get you exactly there. How to set File Permissions For Drupal and Linux. Setting file permissions in Drupal is an important aspect of the setup process when building a Drupal based website.
One of the first requirements you will come accross is the setup of the database and its password. This requires the 'settings.php' file to be writeable by Drupal during the first run of the install script 'install.php'. This process enables the content management system ("CMS") to input the MYSQL database name and password into the settings.php file for future access to the database. Getting Started Before this is done you will need to make the 'settings.php' file writeable, and change it back after setup is complete. Features. The features module enables the capture and management of features in Drupal.
A feature is a collection of Drupal entities which taken together satisfy a certain use-case. Features provides a UI and API for taking different site building components from modules with exportables and bundling them together in a single feature module. A feature module is like any other Drupal module except that it declares its components (e.g. views, contexts, CCK fields, etc.) in its .info file so that it can be checked, updated, or reverted programmatically.
Examples of features might be: A blogA pressroomAn image galleryAn e-commerce t-shirt store. Web Designer Bordeaux France.