Search for _example

Constants

NameLocationDescription
NODE_ACCESS_EXAMPLE_GRANT_ALLnode_access_example/node_access_example.moduleHere we define a constant for our node access grant ID, for the node_access_example_view and node_access_example_edit realms. This ID could be any integer, but here we choose 23, because it is this author's favorite number.

Files

NameLocationDescription
action_example/action_example.infoaction_example/action_example.infoname = Action example description = Demonstrates providing actions that can be associated to triggers. package = Example modules core = 7.x dependencies[] = trigger files[] = action_example.test
action_example/action_example.moduleaction_example/action_example.moduleAction definition example module.
action_example/action_example.testaction_example/action_example.testtest file for action_example module.
ajax_example/ajax_example.infoajax_example/ajax_example.infoname = AJAX Example description = An example module showing how to use Drupal AJAX forms package = Example modules core = 7.x files[] = ajax_example.test
ajax_example/ajax_example.installajax_example/ajax_example.installAJAX Examples install file schema for ajax_example_form_node_form_alter()
ajax_example/ajax_example.moduleajax_example/ajax_example.moduleAJAX Examples module file with basic examples.
ajax_example/ajax_example.testajax_example/ajax_example.testTest ajax example module.
ajax_example/ajax_example_advanced.incajax_example/ajax_example_advanced.incAJAX Commands examples.
ajax_example/ajax_example_graceful_degradation.incajax_example/ajax_example_graceful_degradation.incDemonstrations of AJAX with graceful degradation.
ajax_example/ajax_example_misc.incajax_example/ajax_example_misc.incAJAX Miscellaneous Topics.
ajax_example/ajax_example_node_form_alter.incajax_example/ajax_example_node_form_alter.incThis example shows how to use AJAX when altering a node form.
batch_example/batch_example.infobatch_example/batch_example.infoname = Batch example description = An example outlining how a module can define batch operations. package = Example modules core = 7.x files[] = batch_example.test
batch_example/batch_example.installbatch_example/batch_example.installInstall, update, and uninstall functions for the batch_example module.
batch_example/batch_example.modulebatch_example/batch_example.moduleOutlines how a module can use the Batch API.
batch_example/batch_example.testbatch_example/batch_example.testTest case for Testing the batch example module.
block_example/block_example.infoblock_example/block_example.infoname = Block Example description = An example outlining how a module can define blocks. package = Example modules core = 7.x dependencies[] = block files[] = block_example.test
block_example/block_example.installblock_example/block_example.installInstall, update and uninstall functions for the block_example module.
block_example/block_example.moduleblock_example/block_example.moduleModule file for block_example.
block_example/block_example.testblock_example/block_example.testTest case for testing the block example module.
cache_example/cache_example.infocache_example/cache_example.infoname = Cache Example description = An example outlining how to use Cache API. package = Example modules core = 7.x files[] = cache_example.test
cache_example/cache_example.modulecache_example/cache_example.moduleOutlines how a module can use the Cache API.
cache_example/cache_example.testcache_example/cache_example.testTest case for testing the cache example module.
contextual_links_example/contextual_links_example.infocontextual_links_example/contextual_links_example.infoname = Contextual links example description = Demonstrates how to use contextual links for enhancing the user experience. package = Example modules core = 7.x files[] = contextual_links_example.test
contextual_links_example/contextual_links_example.modulecontextual_links_example/contextual_links_example.moduleShows how to use Drupal's contextual links functionality.
contextual_links_example/contextual_links_example.testcontextual_links_example/contextual_links_example.testTests for the contextual links example module.
cron_example/cron_example.infocron_example/cron_example.infoname = Cron example description = Demonstrates hook_cron() and related features package = Example modules core = 7.x files[] = cron_example.test
cron_example/cron_example.modulecron_example/cron_example.moduleDemonstrates use of the Cron API in Drupal - hook_cron()
cron_example/cron_example.testcron_example/cron_example.testTest case for testing the cron example module.
dbtng_example/dbtng_example.infodbtng_example/dbtng_example.infoname = DBTNG example description = An example module showing how use the database API: DBTNG. package = Example modules core = 7.x files[] = dbtng_example.test
dbtng_example/dbtng_example.installdbtng_example/dbtng_example.installInstall, update and uninstall functions for the dbtng_example module.
dbtng_example/dbtng_example.moduledbtng_example/dbtng_example.moduleThis is an example outlining how a module can make use of the new DBTNG database API in Drupal 7.
dbtng_example/dbtng_example.testdbtng_example/dbtng_example.testSimpleTests for dbtng_example module.
email_example/email_example.infoemail_example/email_example.infoname = E-mail Example description = Demonstrate Drupal's e-mail APIs. package = Example modules core = 7.x files[] = email_example.test
email_example/email_example.moduleemail_example/email_example.moduleExample of how to use Drupal's mail API.
email_example/email_example.testemail_example/email_example.testSimpletest case for email_example module.
field_example/field_example.infofield_example/field_example.infoname = Field Example description = An implementation of a field to show the Field API package = Example modules core = 7.x files[] = field_example.test
field_example/field_example.installfield_example/field_example.installInstall, update, and uninstall functions for the field_example module.
field_example/field_example.modulefield_example/field_example.moduleAn example field using the Field Types API.
field_example/field_example.testfield_example/field_example.testTests for Field Example.
file_example/file_example.infofile_example/file_example.infoname = File example description = Examples of using the Drupal File API and Stream Wrappers. package = Example modules core = 7.x files[] = file_example_session_streams.inc files[] = file_example.test
file_example/file_example.modulefile_example/file_example.moduleExamples demonstrating the Drupal File API (and Stream Wrappers).
file_example/file_example.testfile_example/file_example.testTests for File Example.
file_example/file_example_session_streams.incfile_example/file_example_session_streams.incProvides a demonstration session:// streamwrapper.
filter_example/filter_example.infofilter_example/filter_example.infoname = Filter example description = An example module showing how to define a custom filter. package = Example modules core = 7.x files[] = filter_example.test
filter_example/filter_example.modulefilter_example/filter_example.moduleModule file for filter_example.
filter_example/filter_example.testfilter_example/filter_example.testTest case for Testing the filter example module.
form_example/form_example.infoform_example/form_example.infoname = Form example description = Examples of using the Drupal Form API. package = Example modules core = 7.x files[] = form_example.test
form_example/form_example.moduleform_example/form_example.moduleExamples demonstrating the Drupal Form API.
form_example/form_example.testform_example/form_example.testTest file for form_example module.