README-1 sdfsfsdfsfss
description
Transcript of README-1 sdfsfsdfsfss
![Page 1: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/1.jpg)
----------------------Command Line Arguments----------------------
Example: ./word-count -b -sort SelectionSort -suf < textfile
-b | -a | -s (required) Specifies the type of tree for storing (word, count) pair possible trees are Binary search tree, Avl tree, and Splay tree
-b - Count frequencies using an unbalanced binary search tree -a - Count frequencies using an AVL tree -s - Count frequencies using a splay tree
-sort SelectionSort | MergeSort | HeapSort (optional) Specifies the type of sort. If -sort is omitted, HeapSort is used
-suf (optional) Turns on suffix checker
-------------------------Design Decisions & Issues-------------------------Since we stereotype against english majors, let's avoid writing this in anessay format...
Q. The original BinarySearchTree::Insert() resolves key collosion byoverwriting the old value with the new value. How does the modified insertfunctions resolve key collosions?
A. The modified insert functions resolve key collosions by adding the newvalue to the old value. For example, if there exists a key K with a value 3,and we wanted to insert a key K with value 2, the Insert function would changethe value to 3+2=5. For our word-count, every key is inserted with a value 1.However, it's easy to see that the insert functions allow different changes tobe made to the existing key-value tree. Consequently, the + operator must be overloaded for the ValueType.
Q. What is the relationship between the AVLNode class and the BSTNode class?
A. The AVLNode is-a BSTNode. Since the AVLTree inherits and uses manymethods from the BinarySearchTree (which operates on BSTNodes), the nodes usedby the AVLTree must be compatible. The difference between AVLNode and its ancestor is that each AVLNoderemembers its height information. This is because the AVL rotationsfrequently compares the height of its subtrees, and it would be inefficent ifwe had to recursively calculate such info.
Class Hierachy
|-------------------------| |------------| | BinarySearchTree |--has-a----->| BSTNode | |-------------------------| |------------| ^ ^ ^ ^ / \ | | is-a is-a | |
![Page 2: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/2.jpg)
/ \ | | / |--------------| | | / | SplayTree |-has-a---| | / |--------------| | / is-a / | |----------------| |------------| | AVLTree |--has-a-------------------------->| AVLNode | |----------------| |------------|
Q. There is no SplayNode class. Why does SplayTree use BSTNodes?
A. The SplayTree class uses BSTNode, while the AVLTree uses AVLNode. The ideais that AVLTree needs to keep track of the height information. On the otherhand, SplayTree doesn't need to have height information. This is very similarto BSTNode class, so there's no need to make a SplayNode class.
Q. What are the similarities and differences between AVLTree rotation methodsand SplayTree rotation methods? Why are they not methods of BinarySearchTreeclass or the node classes?
A. They are basically the same. However, for the AVLTree rotations, they needto update the height information while the SplayTree's methods don't. Thesemethods could have been methods of BinarySearchTree, so that AVLTree andSplayTree can inherit them; however, BST doesn't use rotation at all. We thencame to the decision of making each of the AVLTree, SplayTree differentrotation methods.
Q. The Heap class does not allocate any memory--it shares the data. Why?
A. It makes it faster =)
Q. Sort() is currently a method of HeapSort. The alternative is to define anexternal HeapSort() function that is a friend of the Heap class--HeapSort()still needs to call the PercDown() function. Why did we choose to makeHeapSort a function inside the Heap class?
A. We think that our special(ized) Heap should know how to sort itself. :)
-----------------------Word Frequency Analysis-----------------------
These were the steps to the process: 1 ) run word-count on each essay 2 ) record the frequency for the top 28 most frequent words and
take a subtotal for each (this will be the total number of'relevant' words in each literature)
3 ) isolate the words that made it to top 7 (there were 10), andtake their percentage with respect to the subtotals
4 ) anaylze by comparing the percentages
Of the 10 words to anaylze, words not used at predictable frequencies by Sir
![Page 3: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/3.jpg)
Francis Bacon (is, in, you) were ignored. That left 6 words that are usedat predictable frequencies by Bacon (of, the, and, that, to, a), and 1 wordthat is not used significantly by Bacon (I). Two of the 6 words usedfrequently and predictably by Bacon (to, a) were used just as frequentand predictable in Hamlet and All's Well that Ends Well. On the other hand,the 4 remaining words (of, the, and, that), which also happens to be the wordsused the most frequent by Bacon, are used at only 1/2 to 2/3 the frequency bythe author of Hamlet and All's Well that Ends Well. The minor similaritieshardly make up for the major differeces. Based on the above analysis, we conclude that Bacon wrote neither of Shakespeare's plays.
---------Profiling---------
Our expected performance bottlenecks for the word-count program are...+ the Splay operation for SplayTree+ the insertHelp function for AVL, and+ the PercolateDown operation for Heap
We chose these to be the bottlenecks because we assumed the function callfrequencies and costs. However, it turned out that some of these are not hugebottlenecks at all. For example, Splay funtion doesn't take as much time as wethought. Words that are inserted frequently don't take so much rotationsbecause they are already close to the root.
% cumulative self self total time seconds seconds calls ns/call ns/call name
1.05 1.55 0.02 SplayTree<>::Splay() 4.26 0.45 0.10 AVLTree<>::insertHelp() 1.28 1.76 0.03 Heap::percDown()
The gprof results show that, in general standard I/O operations takes up most of the runtime:
index % time self children called name[2] 24.3 0.05 0.52 45429 next_token()[3] 20.0 0.05 0.42 operator<<()
Even though each word is only read/printed once, we think the cause for I/Oas a bottleneck is its huge constant overhead (which much exceeds the log ntree operations)
For specific choice of trees and input, namely bst tree with word.txt asinput, the biggest bottleneck was string operations and FindNode() function. The cause is that the pre-sorted words created an unbalanced binary searchtree, requiring a complete traversal of a linked-list-like data structureeverytime a word is inserted. At each node visited during the traversal,FindNode compares the string keys.
index % time self children called name <spontaneous>[1] 75.6 167.51 533.04 std::string::compare() 99.37 235.36 3408496094/3408541521 std::string::size()
![Page 4: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/4.jpg)
35.05 81.63 1704248047/1704293468 std::string::data() 81.63 0.00 1704248047/2523092351 std::string::_M_data()
Another significant operation which we overlooked (for the AVLTree) is theUpdateHeight function (which actually took 3.8 percent of the run time).
% cumulative self self total time seconds seconds calls ns/call ns/call name 3.83 0.54 0.09 AVLTree<>::updateHeight()
--------------------Algorithmic Analysis--------------------
From our "SelectionSortSort vs. HeapSort" plot, we can see that when N is greater than8000, selectionsort function grows faster than heapsort function. This confroms our knowledgethat heap sort has better performance than selecion sort in terms of time.
We know that both mergesort(f) and heapsort(g) have O(n logn) runing time.In our "MergeSort vs. HeapSort" plot, two lines are parallel to each other most of the time.This shows that f/g = constant, which means that the runing time of the two algorithms are differentby a constant factor.
------------------------------Word Stemming and Punctuations------------------------------ For the punctuation part, we use the built in function "ispunct(c)" to check if the character is a punctuation or a character. If it is a punctuation, then just ignore (treat it like a space). However, due to the nature of the ispunct(c) function - it considers " ' " and " - " aspunctuations - there are chances for the side effects happen: "I'd" will be read as 2 different words: "I" and "d", same as "he's" becomes "he" and "s". The other case can be "ice-cream" becomes "ice" and "cream". Therefore, we came to the decision of using one of our own functions--ispunctuation(c)--to eliminate the case 's and 'd, and '-'. This function will call ispunct(c) if c is not the ' and -.
For the word-stemming part, two stemming kinds are taken care: words end with -s and with -ly. Due to our language skill limitations,we cannot check all the cases and all the exceptions. We have tried our best to check all of the cases that we think of. Also, since " 'd ", " 's " is in the scope above,we remove them as well. For this option, one needs to add "-suf" in the command line asmentioned above.
Skip to main contentSkip to searchDrupal 6Drupal 7
![Page 5: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/5.jpg)
Drupal 8Other projectsDevelop for Drupal< Go to Drupal.orgDrupal APIAPI HomepageLog in / RegisterREADME.txt
You are hereExamples 77 README.txt6 README.txtExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
![Page 6: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/6.jpg)
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.File
README.txtView sourceExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
![Page 7: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/7.jpg)
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.Search Examples 7Function, file, or topic *
Partial match search is supported API NavigationExamples 7TopicsClassesFunctionsFilesConstantsDrupal NewsPlanet DrupalAssociation NewsSocial Media DirectorySecurity AnnouncementsJobsCommunityGetting InvolvedServices, Training & HostingGroups & MeetupsDrupalConGet StartedDocumentation HomeInstallation GuideSite Building GuideSupportapi.drupal.orgDownload & ExtendDrupal CoreModulesThemesDistributionsAboutDrupliconThe Drupal AssociationAdvertiseAbout Drupal.orgWeb accessibility
![Page 8: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/8.jpg)
All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.Skip to main contentSkip to searchDrupal 6Drupal 7Drupal 8Other projectsDevelop for Drupal< Go to Drupal.orgDrupal APIAPI HomepageLog in / RegisterREADME.txt
You are hereExamples 77 README.txt6 README.txtExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
![Page 9: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/9.jpg)
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.File
README.txtView sourceExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and the
![Page 10: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/10.jpg)
APIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.Search Examples 7Function, file, or topic *
Partial match search is supported API NavigationExamples 7TopicsClassesFunctionsFilesConstantsDrupal NewsPlanet DrupalAssociation NewsSocial Media DirectorySecurity AnnouncementsJobsCommunityGetting InvolvedServices, Training & HostingGroups & MeetupsDrupalConGet StartedDocumentation HomeInstallation GuideSite Building GuideSupportapi.drupal.orgDownload & ExtendDrupal CoreModulesThemesDistributionsAbout
![Page 11: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/11.jpg)
DrupliconThe Drupal AssociationAdvertiseAbout Drupal.orgWeb accessibilityAll source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.Skip to main contentSkip to searchDrupal 6Drupal 7Drupal 8Other projectsDevelop for Drupal< Go to Drupal.orgDrupal APIAPI HomepageLog in / RegisterREADME.txt
You are hereExamples 77 README.txt6 README.txtExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
![Page 12: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/12.jpg)
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.File
README.txtView sourceExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
![Page 13: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/13.jpg)
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.Search Examples 7Function, file, or topic *
Partial match search is supported API NavigationExamples 7TopicsClassesFunctionsFilesConstantsDrupal NewsPlanet DrupalAssociation NewsSocial Media DirectorySecurity AnnouncementsJobsCommunityGetting InvolvedServices, Training & HostingGroups & MeetupsDrupalConGet StartedDocumentation HomeInstallation GuideSite Building GuideSupportapi.drupal.orgDownload & Extend
![Page 14: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/14.jpg)
Drupal CoreModulesThemesDistributionsAboutDrupliconThe Drupal AssociationAdvertiseAbout Drupal.orgWeb accessibilityAll source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.Skip to main contentSkip to searchDrupal 6Drupal 7Drupal 8Other projectsDevelop for Drupal< Go to Drupal.orgDrupal APIAPI HomepageLog in / RegisterREADME.txt
You are hereExamples 77 README.txt6 README.txtExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places to
![Page 15: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/15.jpg)
do this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.File
README.txtView sourceExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
![Page 16: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/16.jpg)
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.Search Examples 7Function, file, or topic *
Partial match search is supported API NavigationExamples 7TopicsClassesFunctionsFilesConstantsDrupal NewsPlanet DrupalAssociation NewsSocial Media DirectorySecurity AnnouncementsJobsCommunityGetting InvolvedServices, Training & HostingGroups & MeetupsDrupalConGet StartedDocumentation Home
![Page 17: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/17.jpg)
Installation GuideSite Building GuideSupportapi.drupal.orgDownload & ExtendDrupal CoreModulesThemesDistributionsAboutDrupliconThe Drupal AssociationAdvertiseAbout Drupal.orgWeb accessibilityAll source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.Skip to main contentSkip to searchDrupal 6Drupal 7Drupal 8Other projectsDevelop for Drupal< Go to Drupal.orgDrupal APIAPI HomepageLog in / RegisterREADME.txt
You are hereExamples 77 README.txt6 README.txtExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
![Page 18: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/18.jpg)
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.File
README.txtView sourceExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
![Page 19: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/19.jpg)
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.Search Examples 7Function, file, or topic *
Partial match search is supported API NavigationExamples 7TopicsClassesFunctionsFilesConstantsDrupal NewsPlanet DrupalAssociation NewsSocial Media DirectorySecurity AnnouncementsJobsCommunityGetting Involved
![Page 20: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/20.jpg)
Services, Training & HostingGroups & MeetupsDrupalConGet StartedDocumentation HomeInstallation GuideSite Building GuideSupportapi.drupal.orgDownload & ExtendDrupal CoreModulesThemesDistributionsAboutDrupliconThe Drupal AssociationAdvertiseAbout Drupal.orgWeb accessibilityAll source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.Skip to main contentSkip to searchDrupal 6Drupal 7Drupal 8Other projectsDevelop for Drupal< Go to Drupal.orgDrupal APIAPI HomepageLog in / RegisterREADME.txt
You are hereExamples 77 README.txt6 README.txtExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
![Page 21: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/21.jpg)
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.File
README.txtView sourceExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
![Page 22: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/22.jpg)
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.Search Examples 7Function, file, or topic *
Partial match search is supported API NavigationExamples 7TopicsClassesFunctionsFilesConstantsDrupal NewsPlanet DrupalAssociation News
![Page 23: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/23.jpg)
Social Media DirectorySecurity AnnouncementsJobsCommunityGetting InvolvedServices, Training & HostingGroups & MeetupsDrupalConGet StartedDocumentation HomeInstallation GuideSite Building GuideSupportapi.drupal.orgDownload & ExtendDrupal CoreModulesThemesDistributionsAboutDrupliconThe Drupal AssociationAdvertiseAbout Drupal.orgWeb accessibilityAll source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.Skip to main contentSkip to searchDrupal 6Drupal 7Drupal 8Other projectsDevelop for Drupal< Go to Drupal.orgDrupal APIAPI HomepageLog in / RegisterREADME.txt
You are hereExamples 77 README.txt6 README.txtExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
![Page 24: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/24.jpg)
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.File
README.txtView sourceExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
![Page 25: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/25.jpg)
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.Search Examples 7Function, file, or topic *
Partial match search is supported API NavigationExamples 7TopicsClassesFunctions
![Page 26: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/26.jpg)
FilesConstantsDrupal NewsPlanet DrupalAssociation NewsSocial Media DirectorySecurity AnnouncementsJobsCommunityGetting InvolvedServices, Training & HostingGroups & MeetupsDrupalConGet StartedDocumentation HomeInstallation GuideSite Building GuideSupportapi.drupal.orgDownload & ExtendDrupal CoreModulesThemesDistributionsAboutDrupliconThe Drupal AssociationAdvertiseAbout Drupal.orgWeb accessibilityAll source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.Skip to main contentSkip to searchDrupal 6Drupal 7Drupal 8Other projectsDevelop for Drupal< Go to Drupal.orgDrupal APIAPI HomepageLog in / RegisterREADME.txt
You are hereExamples 77 README.txt6 README.txtExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
![Page 27: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/27.jpg)
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.File
README.txtView sourceExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
![Page 28: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/28.jpg)
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.Search Examples 7Function, file, or topic *
Partial match search is supported
![Page 29: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/29.jpg)
API NavigationExamples 7TopicsClassesFunctionsFilesConstantsDrupal NewsPlanet DrupalAssociation NewsSocial Media DirectorySecurity AnnouncementsJobsCommunityGetting InvolvedServices, Training & HostingGroups & MeetupsDrupalConGet StartedDocumentation HomeInstallation GuideSite Building GuideSupportapi.drupal.orgDownload & ExtendDrupal CoreModulesThemesDistributionsAboutDrupliconThe Drupal AssociationAdvertiseAbout Drupal.orgWeb accessibilityAll source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.Skip to main contentSkip to searchDrupal 6Drupal 7Drupal 8Other projectsDevelop for Drupal< Go to Drupal.orgDrupal APIAPI HomepageLog in / RegisterREADME.txt
You are hereExamples 77 README.txt6 README.txtExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
![Page 30: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/30.jpg)
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.File
README.txtView sourceExamples for Developers=======================
![Page 31: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/31.jpg)
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.
![Page 32: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/32.jpg)
Search Examples 7Function, file, or topic *
Partial match search is supported API NavigationExamples 7TopicsClassesFunctionsFilesConstantsDrupal NewsPlanet DrupalAssociation NewsSocial Media DirectorySecurity AnnouncementsJobsCommunityGetting InvolvedServices, Training & HostingGroups & MeetupsDrupalConGet StartedDocumentation HomeInstallation GuideSite Building GuideSupportapi.drupal.orgDownload & ExtendDrupal CoreModulesThemesDistributionsAboutDrupliconThe Drupal AssociationAdvertiseAbout Drupal.orgWeb accessibilityAll source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.Skip to main contentSkip to searchDrupal 6Drupal 7Drupal 8Other projectsDevelop for Drupal< Go to Drupal.orgDrupal APIAPI HomepageLog in / RegisterREADME.txt
You are hereExamples 77 README.txt6 README.txtExamples for Developers=======================
![Page 33: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/33.jpg)
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.File
![Page 34: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/34.jpg)
README.txtView sourceExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment with
![Page 35: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/35.jpg)
it, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.Search Examples 7Function, file, or topic *
Partial match search is supported API NavigationExamples 7TopicsClassesFunctionsFilesConstantsDrupal NewsPlanet DrupalAssociation NewsSocial Media DirectorySecurity AnnouncementsJobsCommunityGetting InvolvedServices, Training & HostingGroups & MeetupsDrupalConGet StartedDocumentation HomeInstallation GuideSite Building GuideSupportapi.drupal.orgDownload & ExtendDrupal CoreModulesThemesDistributionsAboutDrupliconThe Drupal AssociationAdvertiseAbout Drupal.orgWeb accessibilityAll source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.Skip to main contentSkip to searchDrupal 6Drupal 7Drupal 8Other projectsDevelop for Drupal< Go to Drupal.orgDrupal APIAPI HomepageLog in / RegisterREADME.txt
You are hereExamples 7
![Page 36: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/36.jpg)
7 README.txt6 README.txtExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
![Page 37: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/37.jpg)
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.File
README.txtView sourceExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
![Page 38: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/38.jpg)
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.Search Examples 7Function, file, or topic *
Partial match search is supported API NavigationExamples 7TopicsClassesFunctionsFilesConstantsDrupal NewsPlanet DrupalAssociation NewsSocial Media DirectorySecurity AnnouncementsJobsCommunityGetting InvolvedServices, Training & HostingGroups & MeetupsDrupalConGet StartedDocumentation HomeInstallation GuideSite Building GuideSupportapi.drupal.orgDownload & ExtendDrupal CoreModulesThemesDistributionsAboutDrupliconThe Drupal AssociationAdvertiseAbout Drupal.orgWeb accessibilityAll source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.Skip to main contentSkip to searchDrupal 6Drupal 7Drupal 8Other projectsDevelop for Drupal< Go to Drupal.orgDrupal API
![Page 39: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/39.jpg)
API HomepageLog in / RegisterREADME.txt
You are hereExamples 77 README.txt6 README.txtExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
![Page 40: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/40.jpg)
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.File
README.txtView sourceExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal
![Page 41: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/41.jpg)
/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.Search Examples 7Function, file, or topic *
Partial match search is supported API NavigationExamples 7TopicsClassesFunctionsFilesConstantsDrupal NewsPlanet DrupalAssociation NewsSocial Media DirectorySecurity AnnouncementsJobsCommunityGetting InvolvedServices, Training & HostingGroups & MeetupsDrupalConGet StartedDocumentation HomeInstallation GuideSite Building GuideSupportapi.drupal.orgDownload & ExtendDrupal CoreModulesThemesDistributionsAboutDrupliconThe Drupal AssociationAdvertiseAbout Drupal.orgWeb accessibilityAll source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.Skip to main contentSkip to searchDrupal 6Drupal 7
![Page 42: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/42.jpg)
Drupal 8Other projectsDevelop for Drupal< Go to Drupal.orgDrupal APIAPI HomepageLog in / RegisterREADME.txt
You are hereExamples 77 README.txt6 README.txtExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
![Page 43: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/43.jpg)
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.File
README.txtView sourceExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
![Page 44: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/44.jpg)
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.Search Examples 7Function, file, or topic *
Partial match search is supported API NavigationExamples 7TopicsClassesFunctionsFilesConstantsDrupal NewsPlanet DrupalAssociation NewsSocial Media DirectorySecurity AnnouncementsJobsCommunityGetting InvolvedServices, Training & HostingGroups & MeetupsDrupalConGet StartedDocumentation HomeInstallation GuideSite Building GuideSupportapi.drupal.orgDownload & ExtendDrupal CoreModulesThemesDistributionsAboutDrupliconThe Drupal AssociationAdvertiseAbout Drupal.orgWeb accessibility
![Page 45: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/45.jpg)
All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.Skip to main contentSkip to searchDrupal 6Drupal 7Drupal 8Other projectsDevelop for Drupal< Go to Drupal.orgDrupal APIAPI HomepageLog in / RegisterREADME.txt
You are hereExamples 77 README.txt6 README.txtExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
![Page 46: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/46.jpg)
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.File
README.txtView sourceExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and the
![Page 47: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/47.jpg)
APIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.Search Examples 7Function, file, or topic *
Partial match search is supported API NavigationExamples 7TopicsClassesFunctionsFilesConstantsDrupal NewsPlanet DrupalAssociation NewsSocial Media DirectorySecurity AnnouncementsJobsCommunityGetting InvolvedServices, Training & HostingGroups & MeetupsDrupalConGet StartedDocumentation HomeInstallation GuideSite Building GuideSupportapi.drupal.orgDownload & ExtendDrupal CoreModulesThemesDistributionsAbout
![Page 48: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/48.jpg)
DrupliconThe Drupal AssociationAdvertiseAbout Drupal.orgWeb accessibilityAll source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.Skip to main contentSkip to searchDrupal 6Drupal 7Drupal 8Other projectsDevelop for Drupal< Go to Drupal.orgDrupal APIAPI HomepageLog in / RegisterREADME.txt
You are hereExamples 77 README.txt6 README.txtExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
![Page 49: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/49.jpg)
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.File
README.txtView sourceExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
![Page 50: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/50.jpg)
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.Search Examples 7Function, file, or topic *
Partial match search is supported API NavigationExamples 7TopicsClassesFunctionsFilesConstantsDrupal NewsPlanet DrupalAssociation NewsSocial Media DirectorySecurity AnnouncementsJobsCommunityGetting InvolvedServices, Training & HostingGroups & MeetupsDrupalConGet StartedDocumentation HomeInstallation GuideSite Building GuideSupportapi.drupal.orgDownload & Extend
![Page 51: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/51.jpg)
Drupal CoreModulesThemesDistributionsAboutDrupliconThe Drupal AssociationAdvertiseAbout Drupal.orgWeb accessibilityAll source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.Skip to main contentSkip to searchDrupal 6Drupal 7Drupal 8Other projectsDevelop for Drupal< Go to Drupal.orgDrupal APIAPI HomepageLog in / RegisterREADME.txt
You are hereExamples 77 README.txt6 README.txtExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places to
![Page 52: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/52.jpg)
do this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.File
README.txtView sourceExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
![Page 53: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/53.jpg)
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.Search Examples 7Function, file, or topic *
Partial match search is supported API NavigationExamples 7TopicsClassesFunctionsFilesConstantsDrupal NewsPlanet DrupalAssociation NewsSocial Media DirectorySecurity AnnouncementsJobsCommunityGetting InvolvedServices, Training & HostingGroups & MeetupsDrupalConGet StartedDocumentation Home
![Page 54: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/54.jpg)
Installation GuideSite Building GuideSupportapi.drupal.orgDownload & ExtendDrupal CoreModulesThemesDistributionsAboutDrupliconThe Drupal AssociationAdvertiseAbout Drupal.orgWeb accessibilityAll source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.Skip to main contentSkip to searchDrupal 6Drupal 7Drupal 8Other projectsDevelop for Drupal< Go to Drupal.orgDrupal APIAPI HomepageLog in / RegisterREADME.txt
You are hereExamples 77 README.txt6 README.txtExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
![Page 55: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/55.jpg)
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.File
README.txtView sourceExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
![Page 56: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/56.jpg)
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.Search Examples 7Function, file, or topic *
Partial match search is supported API NavigationExamples 7TopicsClassesFunctionsFilesConstantsDrupal NewsPlanet DrupalAssociation NewsSocial Media DirectorySecurity AnnouncementsJobsCommunityGetting Involved
![Page 57: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/57.jpg)
Services, Training & HostingGroups & MeetupsDrupalConGet StartedDocumentation HomeInstallation GuideSite Building GuideSupportapi.drupal.orgDownload & ExtendDrupal CoreModulesThemesDistributionsAboutDrupliconThe Drupal AssociationAdvertiseAbout Drupal.orgWeb accessibilityAll source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.Skip to main contentSkip to searchDrupal 6Drupal 7Drupal 8Other projectsDevelop for Drupal< Go to Drupal.orgDrupal APIAPI HomepageLog in / RegisterREADME.txt
You are hereExamples 77 README.txt6 README.txtExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
![Page 58: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/58.jpg)
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.File
README.txtView sourceExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
![Page 59: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/59.jpg)
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.Search Examples 7Function, file, or topic *
Partial match search is supported API NavigationExamples 7TopicsClassesFunctionsFilesConstantsDrupal NewsPlanet DrupalAssociation News
![Page 60: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/60.jpg)
Social Media DirectorySecurity AnnouncementsJobsCommunityGetting InvolvedServices, Training & HostingGroups & MeetupsDrupalConGet StartedDocumentation HomeInstallation GuideSite Building GuideSupportapi.drupal.orgDownload & ExtendDrupal CoreModulesThemesDistributionsAboutDrupliconThe Drupal AssociationAdvertiseAbout Drupal.orgWeb accessibilityAll source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.Skip to main contentSkip to searchDrupal 6Drupal 7Drupal 8Other projectsDevelop for Drupal< Go to Drupal.orgDrupal APIAPI HomepageLog in / RegisterREADME.txt
You are hereExamples 77 README.txt6 README.txtExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
![Page 61: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/61.jpg)
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.File
README.txtView sourceExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
![Page 62: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/62.jpg)
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.Search Examples 7Function, file, or topic *
Partial match search is supported API NavigationExamples 7TopicsClassesFunctions
![Page 63: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/63.jpg)
FilesConstantsDrupal NewsPlanet DrupalAssociation NewsSocial Media DirectorySecurity AnnouncementsJobsCommunityGetting InvolvedServices, Training & HostingGroups & MeetupsDrupalConGet StartedDocumentation HomeInstallation GuideSite Building GuideSupportapi.drupal.orgDownload & ExtendDrupal CoreModulesThemesDistributionsAboutDrupliconThe Drupal AssociationAdvertiseAbout Drupal.orgWeb accessibilityAll source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.Skip to main contentSkip to searchDrupal 6Drupal 7Drupal 8Other projectsDevelop for Drupal< Go to Drupal.orgDrupal APIAPI HomepageLog in / RegisterREADME.txt
You are hereExamples 77 README.txt6 README.txtExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
![Page 64: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/64.jpg)
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.File
README.txtView sourceExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
![Page 65: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/65.jpg)
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.Search Examples 7Function, file, or topic *
Partial match search is supported
![Page 66: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/66.jpg)
API NavigationExamples 7TopicsClassesFunctionsFilesConstantsDrupal NewsPlanet DrupalAssociation NewsSocial Media DirectorySecurity AnnouncementsJobsCommunityGetting InvolvedServices, Training & HostingGroups & MeetupsDrupalConGet StartedDocumentation HomeInstallation GuideSite Building GuideSupportapi.drupal.orgDownload & ExtendDrupal CoreModulesThemesDistributionsAboutDrupliconThe Drupal AssociationAdvertiseAbout Drupal.orgWeb accessibilityAll source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.Skip to main contentSkip to searchDrupal 6Drupal 7Drupal 8Other projectsDevelop for Drupal< Go to Drupal.orgDrupal APIAPI HomepageLog in / RegisterREADME.txt
You are hereExamples 77 README.txt6 README.txtExamples for Developers=======================
http://drupal.org/project/examples
What Is This?-------------
![Page 67: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/67.jpg)
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.File
README.txtView sourceExamples for Developers=======================
![Page 68: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/68.jpg)
http://drupal.org/project/examples
What Is This?-------------
This set of modules is intended to provide working examples of Drupal'sfeatures and APIs. The modules strive to be simple, well documented andmodification friendly, in order to help developers quickly learn their innerworkings.
These examples are meant to teach you about code-level development for Drupal7. Some solutions might be better served using a contributed module, so thatyou don't end up having to re-invent the wheel in PHP.
How To Use The Examples-----------------------
There are three main ways to interact with the examples in this project:
1. Enable the modules and use them within Drupal. Not all modules will haveobvious things to see within Drupal. For instance, while the Page and Form APIexamples will show you forms, the Database API example will not show you muchwithin Drupal itself.
2. Read the code. Much effort has gone into making the example code readable,not only in terms of the code itself, but also the extensive inline commentsand documentation blocks.
3. Browse the code and documentation on the web. There are two main places todo this:
* https://api.drupal.org/api/examples is the main API site for all of Drupal.It has all manner of cross-linked references between the example code and theAPIs being demonstrated.
* http://drupalcode.org/project/examples.git allows you to browse the gitrepository for the Examples project.
How To Install The Modules--------------------------
1. Install Examples for Developers (unpacking it to your Drupal/sites/all/modules directory if you're installing by hand, for example).
2. Enable any Example modules in Admin menu > Site building > Modules.
3. Rebuild access permissions if you are prompted to.
4. Profit! The examples will appear in your Navigation menu (on the leftsidebar by default; you'll need to reenable it if you removed it).
Now you can read the code and its comments and see the result, experiment withit, and hopefully quickly grasp how things work.
If you find a problem, incorrect comment, obsolete or improper code or such,please search for an issue about it at http://drupal.org/project/issues/examplesIf there isn't already an issue for it, please create a new one.
![Page 69: README-1 sdfsfsdfsfss](https://reader033.fdocuments.net/reader033/viewer/2022042618/577cc7651a28aba711a0cf15/html5/thumbnails/69.jpg)
Search Examples 7Function, file, or topic *
Partial match search is supported API NavigationExamples 7TopicsClassesFunctionsFilesConstantsDrupal NewsPlanet DrupalAssociation NewsSocial Media DirectorySecurity AnnouncementsJobsCommunityGetting InvolvedServices, Training & HostingGroups & MeetupsDrupalConGet StartedDocumentation HomeInstallation GuideSite Building GuideSupportapi.drupal.orgDownload & ExtendDrupal CoreModulesThemesDistributionsAboutDrupliconThe Drupal AssociationAdvertiseAbout Drupal.orgWeb accessibilityAll source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.