Projet

Général

Profil

Paste
Télécharger (687 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / ctools / help / context-access.html @ 3aa14731

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>