Révision c304a780
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/ctools/plugins/content_types/contact/user_contact.inc | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 |
/** |
|
4 |
* @file |
|
5 |
*/ |
|
6 |
|
|
3 | 7 |
if (module_exists('contact')) { |
4 | 8 |
/** |
5 | 9 |
* Plugins are described by creating a $plugin array which will be used |
... | ... | |
28 | 32 |
} |
29 | 33 |
|
30 | 34 |
// Build the content type block. |
31 |
$block = new stdClass(); |
|
32 |
$block->module = 'contact';
|
|
33 |
$block->delta = 'form';
|
|
34 |
$block->title = t('Contact @name', array('@name' => $context->data->name));
|
|
35 |
$block = new stdClass();
|
|
36 |
$block->module = 'contact'; |
|
37 |
$block->delta = 'form'; |
|
38 |
$block->title = t('Contact @name', array('@name' => $context->data->name)); |
|
35 | 39 |
|
36 | 40 |
module_load_include('inc', 'contact', 'contact.pages'); |
37 | 41 |
$block->content = drupal_get_form('contact_personal_form', $context->data); |
... | ... | |
51 | 55 |
*/ |
52 | 56 |
function ctools_user_contact_content_type_edit_form_submit(&$form, &$form_state) { |
53 | 57 |
// Copy everything from our defaults. |
54 |
/* |
|
55 |
foreach (array_keys($form_state['plugin']['defaults']) as $key) { |
|
56 |
$form_state['conf'][$key] = $form_state['values'][$key]; |
|
57 |
} |
|
58 |
*/ |
|
59 | 58 |
} |
60 | 59 |
|
61 | 60 |
/** |
Formats disponibles : Unified diff
Weekly update of contrib modules