Project

General

Profile

Revision a8cee257

Added by Assos Assos almost 5 years ago

Weekly update of contrib modules

View differences:

drupal7/sites/all/modules/field_permissions/field_permissions.install
24 24
  // Collect all the field data that reference "field_permissions", within
25 25
  // the field_config table.
26 26
  //
27
  $records = db_query("SELECT * FROM field_config WHERE data LIKE '%field_permissions%'");
27
  $records = db_query("SELECT * FROM {field_config} WHERE data LIKE '%field_permissions%'");
28 28

  
29 29
  foreach ($records as $record) {
30 30
    $data = $record->data;
......
33 33
    $data = serialize($data);
34 34

  
35 35
    // Update the record.
36
    db_query("UPDATE field_config SET data = :data WHERE id = :id",
36
    db_query("UPDATE {field_config} SET data = :data WHERE id = :id",
37 37
      array(':data' => $data, ':id' => $record->id));
38 38
  }
39 39
}

Also available in: Unified diff