23. Directory Nest files folder doesn’t ship with Drupal by default, but it is needed if you plan on using a custom logo, enabling user avatars, or uploading other media associated with your new site. The includes folder contains libraries of common functions that Drupal uses. We don’t need to add anything here its core drupal directory. The misc folder stores JavaScript and miscellaneous icons and images available to a stock Drupalinstallation. The modules folder contains the core modules, with each module in its own folder. It is best not to touch anything in this folder. The profiles folder contains different installation profiles for a site. If there are other profiles besides the default profile in this subdirectory, Drupal will ask you which profile you want to install when first installing your Drupal site. The main purpose of an installation profile is to enable certain core and contributed modules automatically. An example would be an e-commerce profile that automatically sets up Drupal as an e-commerce platform. The scripts folder contains scripts for checking syntax, cleaning up code, and handling special cases with cron. It is not used within the Drupal request life cycle; these are shell and Perl utility scripts. The sites directory (see Figure 1-5) contains your modifications to Drupal in the form of settings, modules, and themes. When you add modules to Drupal from the contributed modules repository or by writing your own, they go into sites/all/modules. This keeps all your Drupal modifications within a single folder. Inside the sites directory will be a subdirectory named default that holds the default configuration file for your Drupalsite settings.php. The default directory is typically copied and renamed to the URL of your site, so your settings file would be at sites/www.example.com/settings.php. The themes folder contains the template engines and default themes for Drupal.
26. Extend The Drupal Drupal have very good core features as we seen. But there is characteristic of being human that they always try to expand the things(Only humans). Ok so we may want to expand it too! There are main two ways to extend Drupal. By making modules we can extend functionality of Drupal. By making themes we can increase ( or may decrease if not created well) the beauty of Drupal site. First we will learn how to create modules then we go for theme creation so , Friends make your weapons ready and keep your brain engine running to raise questions.
27. Hook ????? There is no war without weapons my friends. So In this war your weapon is HOOK. So, what the hook may be? Speaking in simple words, It’s the prefix for all function we will write in our module. For convenience intelligent programmers keeps it same as name of our module. And hope being intelligent we will not rename it. Yes you will ask can I change it to something else? Why not sure, you can change it. But then you have to change one parameter in hook_info function (we write this function in .module file). So, we can change is at our risk. It may fail your module if not taken care! So, first we will write a module and then answer how we can change name of hook.