Projet

Général

Profil

Révision 13c3c9b4

Ajouté par Assos Assos il y a environ 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/advanced_forum/plugins/access/forum_container.inc
4 4
 * @file
5 5
 * Plugin to provide access control based upon term vocabulary
6 6
 */
7

  
7 8
/**
8 9
 * Plugins are described by creating a $plugin array which will be used
9 10
 * by the system that includes this file.
......
20 21
);
21 22

  
22 23
/**
23
 * Settings form for the 'by term_vocabulary' access plugin
24
 * Settings form for the 'by term_vocabulary' access plugin.
24 25
 */
25 26
function advanced_forum_forum_container_ctools_access_settings($form, &$form_state, $conf) {
26 27
  $form['settings']['container'] = array(
......
28 29
    '#title' => t('Container'),
29 30
    '#options' => array(
30 31
      0 => t('Pass if forum is a container'),
31
      1 => t('Pass if forum is not a container')
32
      1 => t('Pass if forum is not a container'),
32 33
    ),
33 34
    '#default_value' => $conf['container'],
34 35
  );
......
53 54
    return FALSE;
54 55
  }
55 56

  
56
  // xor returns false if the two bools are the same, and true if they are not.
57
  // Xor returns false if the two bools are the same, and true if they are not.
57 58
  return $context->data->container xor !empty($conf['container']);
58 59
}
59 60

  

Formats disponibles : Unified diff