1 |
85ad3d82
|
Assos Assos
|
<p>Arguments create a context from external input, which is assumed to be a string as though it came from a URL element.</p>
|
2 |
|
|
|
3 |
|
|
<pre>'title' => title
|
4 |
|
|
'description' => Description
|
5 |
|
|
'keyword' => Default keyword for the context
|
6 |
|
|
'context' => Callback to create the context. Params: $arg = NULL, $conf = NULL, $empty = FALSE
|
7 |
|
|
'default' => either an array of default settings or a string which is a callback or null to not use.
|
8 |
|
|
'settings form' => params: $form, $form_state, $conf -- gets the whole form. Should put anything it wants to keep automatically in $form['settings']
|
9 |
|
|
'settings form validate' => params: $form, $form_state
|
10 |
|
|
'settings form submit' => params: $form, $form_state
|
11 |
|
|
'criteria form' => params: $form, &$form_state, $conf, $argument, $id -- gets the whole argument. It should only put form widgets in $form[$id]. $conf may not be properly initialized so always guard against this due to arguments being changed and handlers not being updated to match.
|
12 |
|
|
+ submit + validate
|
13 |
|
|
'criteria select' => returns true if the selected criteria matches the context. params: $context, $conf
|
14 |
|
|
</pre> |