Projet

Général

Profil

Révision 950416da

Ajouté par Assos Assos il y a plus de 5 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/rules/modules/user.rules.inc
1 1
<?php
2 2

  
3 3
/**
4
 * @file rules integration for the user module
4
 * @file
5
 * Rules integration for the user module.
5 6
 *
6 7
 * @addtogroup rules
8
 *
7 9
 * @{
8 10
 */
9 11

  
......
15 17
}
16 18

  
17 19
/**
18
 * Implementation of hook_rules_event_info().
20
 * Implements hook_rules_event_info().
19 21
 */
20 22
function rules_user_event_info() {
21 23
  return array(
......
54 56
          'type' => 'text',
55 57
          'label' => t('view mode'),
56 58
          'options list' => 'rules_get_entity_view_modes',
59
          // Add the entity-type for the options list callback.
60
          'options list entity type' => 'user',
57 61
        ),
58 62
      ),
59 63
      'access callback' => 'rules_user_integration_access',
......
88 92

  
89 93
/**
90 94
 * Options list for user cancel methods.
91
 * @todo: Use for providing a user_cancel action.
95
 *
96
 * @todo Use for providing a user_cancel action.
92 97
 */
93 98
function rules_user_cancel_methods() {
94 99
  module_load_include('inc', 'user', 'user.pages');
......
171 176
 */
172 177
function rules_user_action_info() {
173 178
  $defaults = array(
174
   'parameter' => array(
179
    'parameter' => array(
175 180
      'account' => array(
176 181
        'type' => 'user',
177 182
        'label' => t('User'),
......
196 201
    'base' => 'rules_action_user_remove_role',
197 202
  );
198 203
  $defaults = array(
199
   'parameter' => array(
204
    'parameter' => array(
200 205
      'account' => array(
201 206
        'type' => 'user',
202 207
        'label' => t('User'),

Formats disponibles : Unified diff