comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:ff03f76ab3fe
1 <p>Access plugins allow context based access control to pages.</p>
2 <pre> 'title' => Title of the plugin
3 'description' => Description of the plugin
4 'callback' => callback to see if there is access is available. params: $conf, $contexts, $account
5 'required context' => zero or more required contexts for this access plugin
6 'default' => an array of defaults or a callback giving defaults
7 'settings form' => settings form. params: &$form, &$form_state, $conf
8 settings form validate
9 settings form submit
10 </pre>
11
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>