context-access.html 687 B

123456789101112
  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. <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>