Révision 7e72b748
Ajouté par Assos Assos il y a plus de 6 ans
drupal7/sites/all/modules/ctools/includes/plugins-admin.inc | ||
---|---|---|
10 | 10 |
* |
11 | 11 |
* Implementing this |
12 | 12 |
*/ |
13 |
|
|
13 | 14 |
/** |
14 | 15 |
* Get a plugin configuration form. |
15 | 16 |
* |
... | ... | |
100 | 101 |
if (empty($plugin_definition['title'])) { |
101 | 102 |
$title = t('Configure'); |
102 | 103 |
} |
103 |
else if ($op == 'add') {
|
|
104 |
elseif ($op == 'add') { |
|
104 | 105 |
$title = t('Configure new !plugin_title', array('!plugin_title' => $plugin_definition['title'])); |
105 | 106 |
} |
106 | 107 |
else { |
... | ... | |
134 | 135 |
$form_info['forms']['form']['wrapper'] = 'ctools_plugins_default_form_wrapper'; |
135 | 136 |
} |
136 | 137 |
} |
137 |
else if (is_array($info)) {
|
|
138 |
if (empty($form_info['order'])) {
|
|
139 |
$form_info['order'] = array();
|
|
140 |
}
|
|
138 |
elseif (is_array($info)) { |
|
139 |
if (empty($form_info['order'])) { |
|
140 |
$form_info['order'] = array(); |
|
141 |
} |
|
141 | 142 |
if (empty($form_info['forms'])) { |
142 | 143 |
$form_info['forms'] = array(); |
143 | 144 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules