Mercurial > hg > rr-repo
diff sites/all/modules/ctools/ctools_plugin_example/help/Argument-Plugins--Starting-at-the-beginning.html @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sites/all/modules/ctools/ctools_plugin_example/help/Argument-Plugins--Starting-at-the-beginning.html Wed Aug 21 18:51:11 2013 +0100 @@ -0,0 +1,20 @@ +<div id="node-12" class="node"> + + + + + <div class="content clear-block"> + <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> +<p>We first need to process an argument.</p> +<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> +<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> +<p>You can browse plugins/arguments/simplecontext_arg.inc and see the little that it does.</p> + </div> + + <div class="clear-block"> + <div class="meta"> + </div> + + </div> + +</div>