Révision 560c3060
Ajouté par Julien Enselme il y a plus de 8 ans
drupal7/sites/all/modules/ctools/includes/context.inc | ||
---|---|---|
216 | 216 |
$context = new ctools_context('any'); |
217 | 217 |
$context->title = t('No context'); |
218 | 218 |
$context->identifier = t('No context'); |
219 |
$contexts = array_merge(array('empty' => $context), $contexts);
|
|
219 |
$contexts['empty'] = $context;
|
|
220 | 220 |
} |
221 | 221 |
|
222 | 222 |
function filter($contexts) { |
... | ... | |
1505 | 1505 |
return TRUE; |
1506 | 1506 |
} |
1507 | 1507 |
else if (!$pass && $settings['logic'] == 'and') { |
1508 |
// Fail if 'and' and htis rule failed.
|
|
1508 |
// Fail if 'and' and this rule failed.
|
|
1509 | 1509 |
return FALSE; |
1510 | 1510 |
} |
1511 | 1511 |
} |
Formats disponibles : Unified diff
Update ctools 1.7 -> 1.9