Révision 08475715
Ajouté par Assos Assos il y a plus de 7 ans
drupal7/sites/all/modules/ctools/page_manager/page_manager.admin.inc | ||
---|---|---|
1547 | 1547 |
|
1548 | 1548 |
$form['handlers'] = array('#tree' => TRUE); |
1549 | 1549 |
|
1550 |
// Get the number of variants to be displayed in order to set the delta |
|
1551 |
// to the proper value. This fixes problems in previous versions with sorting |
|
1552 |
// large numbers of variants. |
|
1553 |
$delta = count($page->handler_info)/2 + 1; |
|
1554 |
|
|
1550 | 1555 |
foreach ($page->handler_info as $id => $info) { |
1551 | 1556 |
if ($info['changed'] & PAGE_MANAGER_CHANGED_DELETED) { |
1552 | 1557 |
continue; |
... | ... | |
1572 | 1577 |
$form['handlers'][$id]['weight'] = array( |
1573 | 1578 |
'#type' => 'weight', |
1574 | 1579 |
'#default_value' => $info['weight'], |
1575 |
'#delta' => 30,
|
|
1580 |
'#delta' => $delta,
|
|
1576 | 1581 |
); |
1577 | 1582 |
} |
1578 | 1583 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules