Projet

Général

Profil

Révision 08475715

Ajouté par Assos Assos il y a plus de 7 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/panels/panels.module
6 6
 * Core functionality for the Panels engine.
7 7
 */
8 8

  
9
define('PANELS_REQUIRED_CTOOLS_API', '2.0.8');
9
define('PANELS_REQUIRED_CTOOLS_API', '2.0.9');
10 10

  
11 11
/**
12 12
 * The current working panels version.
......
20 20
 *   ; Requires Panels v7.x-3.4 or newer.
21 21
 *   dependencies[] = panels (>=3.4)
22 22
 */
23
define('PANELS_VERSION', '7.x-3.6');
23
define('PANELS_VERSION', '7.x-3.8');
24 24

  
25 25

  
26 26
define('PANELS_TITLE_FIXED', 0); // Hide title use to be true/false. So false remains old behavior.
......
317 317
    ),
318 318
    'administer panels styles' => array(
319 319
      'title' => t("Administer Panels styles"),
320
      'description' => t("DEPRECATED: Modules using this permission should use specific style permissions. See Issue #2329419 for more info."),
321
    ),
322
    'administer panels display styles' => array(
323
      'title' => t("Administer Panels display styles"),
324
      'description' => t("Allows a user to administer the styles of Panel displays."),
325
    ),
326
    'administer panels pane styles' => array(
327
      'title' => t("Administer Panels pane styles"),
320 328
      'description' => t("Allows a user to administer the styles of Panel panes."),
321 329
    ),
330
    'administer panels region styles' => array(
331
      'title' => t("Administer Panels region styles"),
332
      'description' => t("Allows a user to administer the styles of Panel regions."),
333
    ),
322 334
    'use panels caching features' => array(
323 335
      'title' => t("Configure caching settings on Panels"),
324 336
      'description' => t("Allows a user to configure caching on Panels displays and panes."),
......
1769 1781
  page_manager_set_wizard_cache($wizard_cache);
1770 1782
}
1771 1783

  
1772
/**
1773
 * Alter the page wizard basic page, when panels is selected, to inject page
1774
 * manager as the storage plugin for panels.
1775
 * @param $form
1776
 * @param $form_state
1777
 */
1778
function panels_form_page_manager_page_form_basic_alter(&$form, &$form_state) {
1779
  $form['#validate'][] = 'panels_page_manager_handler_add_validate';
1780
}
1781

  
1782
/**
1783
 * Alter the variant add page, so when panels is selected, page manager is the
1784
 * storage plugin for panels.
1785
 * @param $form
1786
 * @param $form_state
1787
 */
1788
function panels_form_page_manager_handler_add_alter(&$form, &$form_state) {
1789
  $form['#validate'][] = 'panels_page_manager_handler_add_validate';
1790
}
1791

  
1792
/**
1793
 * Perform the validation check to see if panel context is selected to use
1794
 * page manager as the storage plugin.
1795
 * @param $form
1796
 * @param $form_state
1797
 */
1798
function panels_page_manager_handler_add_validate($form, &$form_state) {
1799
  if($form_state['values']['handler'] == 'panel_context') {
1800
    $form_state['page']->storage_type = 'page_manager';
1801
  }
1802
}
1803

  
1804 1784
/**
1805 1785
 * Implements hook_default_page_manager_handlers_alter().
1806 1786
 *

Formats disponibles : Unified diff