Mercurial > hg > rr-repo
annotate sites/all/modules/ctools/help/context-access.html @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
children |
rev | line source |
---|---|
danielebarchiesi@0 | 1 <p>Access plugins allow context based access control to pages.</p> |
danielebarchiesi@0 | 2 <pre> 'title' => Title of the plugin |
danielebarchiesi@0 | 3 'description' => Description of the plugin |
danielebarchiesi@0 | 4 'callback' => callback to see if there is access is available. params: $conf, $contexts, $account |
danielebarchiesi@0 | 5 'required context' => zero or more required contexts for this access plugin |
danielebarchiesi@0 | 6 'default' => an array of defaults or a callback giving defaults |
danielebarchiesi@0 | 7 'settings form' => settings form. params: &$form, &$form_state, $conf |
danielebarchiesi@0 | 8 settings form validate |
danielebarchiesi@0 | 9 settings form submit |
danielebarchiesi@0 | 10 </pre> |
danielebarchiesi@0 | 11 |
danielebarchiesi@0 | 12 <p><strong>Warning:</strong> your settings array will be stored <strong>in the meny system</strong> to reduce loads, so be <strong>trim</strong>.</p> |