Projet

Général

Profil

Révision 64156087

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_mini/plugins/export_ui/panels_mini_ui.class.php
1 1
<?php
2 2

  
3
/**
4
 * @file
5
 */
3 6
class panels_mini_ui extends ctools_export_ui {
4 7
  function init($plugin) {
5 8
    parent::init($plugin);
......
62 65
  }
63 66

  
64 67
  function list_build_row($item, &$form_state, $operations) {
65
    // Set up sorting
68
    // Set up sorting.
66 69
    switch ($form_state['values']['order']) {
67 70
      case 'disabled':
68 71
        $this->sorts[$item->name] = empty($item->disabled) . $item->admin_title;
69 72
        break;
73

  
70 74
      case 'title':
71 75
        $this->sorts[$item->name] = $item->admin_title;
72 76
        break;
77

  
73 78
      case 'name':
74 79
        $this->sorts[$item->name] = $item->name;
75 80
        break;
81

  
76 82
      case 'category':
77 83
        $this->sorts[$item->name] = ($item->category ? $item->category : t('Mini panels')) . $item->admin_title;
78 84
        break;
85

  
79 86
      case 'layout':
80 87
        $this->sorts[$item->name] = $item->display->layout . $item->admin_title;
81 88
        break;
89

  
82 90
      case 'storage':
83 91
        $this->sorts[$item->name] = $item->type . $item->admin_title;
84 92
        break;
......
115 123
  }
116 124

  
117 125
  function edit_form(&$form, &$form_state) {
118
    // Get the basic edit form
126
    // Get the basic edit form.
119 127
    parent::edit_form($form, $form_state);
120 128

  
121 129
    // Set the admin title machine name length.
......
295 303
    panels_edit_display_form_submit($form, $form_state);
296 304
    $form_state['item']->display = $form_state['display'];
297 305
  }
306

  
298 307
}

Formats disponibles : Unified diff