Bachir Soussi Chiadmi 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
..
action_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
ajax_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
batch_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
block_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
cache_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
contextual_links_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
cron_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
dbtng_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
email_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
entity_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
field_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
field_permission_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
file_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
filter_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
form_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
image_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
js_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
menu_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
node_access_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
node_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
nodeapi_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
page_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
pager_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
queue_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
rdf_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
render_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
simpletest_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
tabledrag_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
tablesort_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
theming_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
token_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
trigger_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
vertical_tabs_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
xmlrpc_example 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
LICENSE.txt 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
README.txt 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
examples.index.php 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
examples.info 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前
examples.module 9344a61b61 updated core to 7.58 (right after the site was hacked) 6 年之前

README.txt

Examples for Developers
=======================

http://drupal.org/project/examples

What Is This?
-------------

This set of modules is intended to provide working examples of Drupal's
features and APIs. The modules strive to be simple, well documented and
modification friendly, in order to help developers quickly learn their inner
workings.

These examples are meant to teach you about code-level development for Drupal
7. Some solutions might be better served using a contributed module, so that
you 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 have
obvious things to see within Drupal. For instance, while the Page and Form API
examples will show you forms, the Database API example will not show you much
within 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 comments
and documentation blocks.

3. Browse the code and documentation on the web. There are two main places to
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 the
APIs being demonstrated.

* http://drupalcode.org/project/examples.git allows you to browse the git
repository 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 left
sidebar 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
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/examples
If there isn't already an issue for it, please create a new one.