readme-1 sdfsfsdfsfss

69
---------------------- 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 an essay format... Q. The original BinarySearchTree::Insert() resolves key collosion by overwriting the old value with the new value. How does the modified insert functions resolve key collosions? A. The modified insert functions resolve key collosions by adding the new value 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 change the 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 to be 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 many methods from the BinarySearchTree (which operates on BSTNodes), the nodes used by the AVLTree must be compatible. The difference between AVLNode and its ancestor is that each AVLNode remembers its height information. This is because the AVL rotations frequently compares the height of its subtrees, and it would be inefficent if we had to recursively calculate such info. Class Hierachy |-------------------------| |------------| | BinarySearchTree |--has-a----->| BSTNode | |-------------------------| |------------| ^ ^ ^ ^ / \ | | is-a is-a | |

Upload: drackner

Post on 21-Jul-2016

222 views

Category:

Documents


1 download

DESCRIPTION

AES ASDS SEFKLGDHNLKJFNdfgjk bkjsbdfsjfbsjf sijfbsijfbsjfbh bfjh bjwehfbesoijh b sf wefds ,kejfbsjkdf bgjhbfiosdjh pwioefehogghsddk eighuvjhi9u3o4wrhiuoh9tiu2hr34ieousdfhioduwjbn iu2rwbiweogij b2kqjwqerbiesjb gh35 9iurdg 2r23r sfsd fsefjkbweijrhweni jbesif ESFEJSDHFJKDHBFIUDHBIGUJHFIUSDHFBIUHIGBEHIROWERHPIEORTJH 9IO34T

TRANSCRIPT

Page 1: README-1 sdfsfsdfsfss

----------------------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

/ \ | | / |--------------| | | / | 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

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

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

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

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

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

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

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

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

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

* 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/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

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

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

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

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

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

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

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

* 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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.