Projet

Général

Profil

Révision e7101f36

Ajouté par Julien Enselme il y a environ 9 ans

Update uuid 1.0-alpha5 1.0-alpha6

Voir les différences:

drupal7/sites/all/modules/uuid/uuid.module
25 25
module_load_include('inc', 'uuid', 'uuid.core');
26 26

  
27 27
/**
28
 * Implements of hook_menu().
28
 * Implements hook_menu().
29 29
 */
30 30
function uuid_menu() {
31 31
  $items = array();
......
72 72
}
73 73

  
74 74
/**
75
 * Implements of hook_ctools_plugin_directory().
75
 * Implements hook_ctools_plugin_directory().
76 76
 */
77 77
function uuid_ctools_plugin_directory($module, $plugin) {
78 78
  if ($module == 'ctools') {
......
81 81
}
82 82

  
83 83
/**
84
 * Implements of hook_permission().
84
 * Implements hook_permission().
85 85
 */
86 86
function uuid_permission() {
87 87
  return array(
......
125 125

  
126 126

  
127 127
/**
128
 * Implementation of hook_views_api().
128
 * Implements hook_views_api().
129 129
 */
130 130
function uuid_views_api() {
131 131
  return array(
......
135 135
}
136 136

  
137 137
/**
138
 * Implements of hook_module_implements_alter().
138
 * Implements hook_module_implements_alter().
139 139
 *
140
 * Moves implementation of hook_entity_info_alter() to the bottom so it is
140
 * Moves hook_entity_info_alter() implementation to the bottom so it is
141 141
 * invoked after all modules relying on the entity API.
142 142
 *
143 143
 * @see uuid_entity_info_alter()
144 144
 */
145
function uuid_module_implements_alter(&$Implementss, $hook) {
145
function uuid_module_implements_alter(&$implementss, $hook) {
146 146
  if ($hook == 'entity_info_alter') {
147 147
    // Move our hook Implements to the bottom.
148
    $group = $Implementss['uuid'];
149
    unset($Implementss['uuid']);
150
    $Implementss['uuid'] = $group;
148
    $group = $implementss['uuid'];
149
    unset($implementss['uuid']);
150
    $implementss['uuid'] = $group;
151 151
  }
152 152
}
153 153

  
154 154
/**
155
 * Implements of hook_uuid_sync().
155
 * Implements hook_uuid_sync().
156 156
 */
157 157
function uuid_uuid_sync() {
158 158
  foreach (entity_get_info() as $entity_type => $info) {
......
185 185
}
186 186

  
187 187
/**
188
 * Implementation of hook_features_api().
188
 * Implements hook_features_api().
189 189
 *
190 190
 * The Features support consists of exporting entities from a Deploy
191 191
 * <em>fetch-only</em> plan. Deploy is only required to generate the feature
......
202 202
      'default_hook' => 'uuid_default_entities',
203 203
      'default_file' => FEATURES_DEFAULTS_INCLUDED,
204 204
      'feature_source' => TRUE,
205
      'file' => drupal_get_path('module', 'uuid') .'/uuid.features.inc',
205
      'file' => drupal_get_path('module', 'uuid') . '/uuid.features.inc',
206 206
    ),
207 207
  );
208 208
}
......
212 212
 */
213 213
function uuid_redirector() {
214 214
  $entity_data = uuid_uri_array_to_data(arg());
215
  
215

  
216 216
  $entity_info = entity_get_info($entity_data['entity_type']);
217 217
  if (empty($entity_info['uuid'])) {
218 218
    return drupal_not_found();

Formats disponibles : Unified diff