Révision c304a780
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/ctools/plugins/content_types/contact/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 |
... | ... | |
22 | 26 |
return; |
23 | 27 |
} |
24 | 28 |
// Build the content type block. |
25 |
$block = new stdClass(); |
|
26 |
$block->module = 'contact';
|
|
27 |
$block->delta = 'form';
|
|
28 |
$block->title = t('Contact');
|
|
29 |
$block = new stdClass();
|
|
30 |
$block->module = 'contact'; |
|
31 |
$block->delta = 'form'; |
|
32 |
$block->title = t('Contact'); |
|
29 | 33 |
|
30 | 34 |
module_load_include('inc', 'contact', 'contact.pages'); |
31 | 35 |
$block->content = drupal_get_form('contact_site_form'); |
... | ... | |
45 | 49 |
*/ |
46 | 50 |
function ctools_contact_content_type_edit_form_submit($form, &$form_state) { |
47 | 51 |
// Copy everything from our defaults. |
48 |
/* |
|
49 |
foreach (array_keys($form_state['plugin']['defaults']) as $key) { |
|
50 |
$form_state['conf'][$key] = $form_state['values'][$key]; |
|
51 |
} |
|
52 |
*/ |
|
53 | 52 |
} |
54 | 53 |
|
55 | 54 |
/** |
Formats disponibles : Unified diff
Weekly update of contrib modules