Projet

Général

Profil

Révision c304a780

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ctools/plugins/export_ui/ctools_export_ui.class.php
122 122
    switch ($op) {
123 123
      case 'import':
124 124
        return user_access('use ctools import');
125

  
125 126
      case 'revert':
126 127
        return ($item->export_type & EXPORT_IN_DATABASE) && ($item->export_type & EXPORT_IN_CODE);
128

  
127 129
      case 'delete':
128 130
        return ($item->export_type & EXPORT_IN_DATABASE) && !($item->export_type & EXPORT_IN_CODE);
131

  
129 132
      case 'disable':
130 133
        return empty($item->disabled);
134

  
131 135
      case 'enable':
132 136
        return !empty($item->disabled);
137

  
133 138
      default:
134 139
        return TRUE;
135 140
    }
......
154 159
      if (!$js) {
155 160
        drupal_goto($_GET['q']);
156 161
      }
157
      // clear everything but form id, form build id and form token:
162
      // Clear everything but form id, form build id and form token.
158 163
      $keys = array_keys($input);
159 164
      foreach ($keys as $id) {
160 165
        if (!in_array($id, array('form_id', 'form_build_id', 'form_token'))) {
......
901 906
    if (!empty($form_state['complete'])) {
902 907
      $this->edit_save_form($form_state);
903 908
    }
904
    else if ($output && !empty($form_state['item']->export_ui_item_is_cached)) {
909
    elseif ($output && !empty($form_state['item']->export_ui_item_is_cached)) {
905 910
      // @todo this should be in the plugin strings
906 911
      drupal_set_message(t('You have unsaved changes. These changes will not be made permanent until you click <em>Save</em>.'), 'warning');
907 912
    }

Formats disponibles : Unified diff