Projet

Général

Profil

Révision 5587145e

Ajouté par Assos Assos il y a presque 7 ans

Update to 7.56

Voir les différences:

drupal7/modules/contact/contact.module
234 234
 * Implements hook_user_presave().
235 235
 */
236 236
function contact_user_presave(&$edit, $account, $category) {
237
  $edit['data']['contact'] = isset($edit['contact']) ? $edit['contact'] : variable_get('contact_default_status', 1);
237
  if (isset($edit['contact'])) {
238
    // Set new value.
239
    $edit['data']['contact'] = $edit['contact'];
240
  }
241
  elseif (!isset($account->data['contact'])) {
242
    // Use default if none has been set.
243
    $edit['data']['contact'] = variable_get('contact_default_status', 1);
244
  }
238 245
}
239 246

  
240 247
/**

Formats disponibles : Unified diff