Révision c304a780
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/ctools/plugins/contexts/node_add_form.inc | ||
---|---|---|
2 | 2 |
|
3 | 3 |
/** |
4 | 4 |
* @file |
5 |
* |
|
6 |
* Plugin to provide a node_add_form context |
|
5 |
* Plugin to provide a node_add_form context. |
|
7 | 6 |
*/ |
8 | 7 |
|
9 | 8 |
/** |
... | ... | |
65 | 64 |
$form_state = array( |
66 | 65 |
'want form' => TRUE, |
67 | 66 |
'build_info' => array( |
68 |
'args' => array($node) |
|
69 |
) |
|
67 |
'args' => array($node),
|
|
68 |
),
|
|
70 | 69 |
); |
71 | 70 |
|
72 | 71 |
// Use module_load_include so that caches and stuff can know to load this. |
... | ... | |
81 | 80 |
|
82 | 81 |
// These are specific pieces of data to this form. |
83 | 82 |
// All forms should place the form here. |
84 |
$context->form = $form; |
|
85 |
$context->form_id = $form_id; |
|
86 |
$context->form_title = t('Submit @name', array('@name' => $types[$type]->name)); |
|
87 |
$context->node_type = $type; |
|
83 |
$context->form = $form;
|
|
84 |
$context->form_id = $form_id;
|
|
85 |
$context->form_title = t('Submit @name', array('@name' => $types[$type]->name));
|
|
86 |
$context->node_type = $type;
|
|
88 | 87 |
$context->restrictions['type'] = array($type); |
89 | 88 |
$context->restrictions['form'] = array('form'); |
90 | 89 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules