annotate sites/all/modules/ctools/ctools_plugin_example/help/Argument-Plugins--Starting-at-the-beginning.html @ 9:830c812b520f

added smtp module
author root <root@paio.local>
date Mon, 28 Oct 2013 15:34:27 +0000
parents ff03f76ab3fe
children
rev   line source
danielebarchiesi@0 1 <div id="node-12" class="node">
danielebarchiesi@0 2
danielebarchiesi@0 3
danielebarchiesi@0 4
danielebarchiesi@0 5
danielebarchiesi@0 6 <div class="content clear-block">
danielebarchiesi@0 7 <p>Contexts are fundamental to CTools, and they almost always start with an argument to a panels page, so we'll start there too.</p>
danielebarchiesi@0 8 <p>We first need to process an argument.</p>
danielebarchiesi@0 9 <p>We're going to work with a "Simplecontext" context type and argument, and then with a content type that displays it. So we'll start by with the Simplecontext argument plugin in plugins/arguments/simplecontext_arg.inc.</p>
danielebarchiesi@0 10 <p>Note that the name of the file (simplecontext_arg.inc) is built from the machine name of our plugin (simplecontext_arg). And note also that the primary function that we use to provide our argument (ctools_plugin_example_simplecontext_arg_ctools_arguments()) is also built from the machine name. This magic is most of the naming magic that you have to know.</p>
danielebarchiesi@0 11 <p>You can browse plugins/arguments/simplecontext_arg.inc and see the little that it does.</p>
danielebarchiesi@0 12 </div>
danielebarchiesi@0 13
danielebarchiesi@0 14 <div class="clear-block">
danielebarchiesi@0 15 <div class="meta">
danielebarchiesi@0 16 </div>
danielebarchiesi@0 17
danielebarchiesi@0 18 </div>
danielebarchiesi@0 19
danielebarchiesi@0 20 </div>