Révision 18596a08
Ajouté par Assos Assos il y a presque 7 ans
drupal7/sites/all/modules/module_filter/module_filter.pages.inc | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 |
/** |
|
4 |
* @file |
|
5 |
*/ |
|
6 |
|
|
3 | 7 |
/** |
4 | 8 |
* Wrapper function for update_status(). |
5 | 9 |
* |
... | ... | |
12 | 16 |
return array( |
13 | 17 |
'module_filter' => drupal_get_form('module_filter_update_status_form'), |
14 | 18 |
'update_report' => array( |
15 |
'#markup' => $update_report |
|
16 |
) |
|
19 |
'#markup' => $update_report,
|
|
20 |
),
|
|
17 | 21 |
); |
18 | 22 |
} |
19 | 23 |
|
24 |
/** |
|
25 |
* Form builder for the module filter form. |
|
26 |
*/ |
|
20 | 27 |
function module_filter_update_status_form($form, &$form_state) { |
21 | 28 |
$form['module_filter'] = array( |
22 | 29 |
'#type' => 'module_filter', |
23 | 30 |
'#attached' => array( |
24 | 31 |
'css' => array( |
25 |
drupal_get_path('module', 'module_filter') . '/css/update_status.css' |
|
32 |
drupal_get_path('module', 'module_filter') . '/css/update_status.css',
|
|
26 | 33 |
), |
27 | 34 |
'js' => array( |
28 |
drupal_get_path('module', 'module_filter') . '/js/update_status.js' |
|
35 |
drupal_get_path('module', 'module_filter') . '/js/update_status.js',
|
|
29 | 36 |
), |
30 | 37 |
), |
31 | 38 |
); |
... | ... | |
34 | 41 |
'#default_value' => (isset($_GET['show']) && in_array($_GET['show'], array('all', 'updates', 'security', 'unknown'))) ? $_GET['show'] : 'all', |
35 | 42 |
'#options' => array('all' => t('All'), 'updates' => t('Update available'), 'security' => t('Security update'), 'unknown' => t('Unknown')), |
36 | 43 |
'#prefix' => '<div id="module-filter-show-wrapper">', |
37 |
'#suffix' => '</div>' |
|
44 |
'#suffix' => '</div>',
|
|
38 | 45 |
); |
39 | 46 |
if (module_exists('update_advanced')) { |
40 | 47 |
$options = $form['module_filter']['show']['#options']; |
Formats disponibles : Unified diff
Weekly update of contrib modules