function globallink_delete_field_configs in GlobalLink Connect for Drupal 7.7
Same name and namespace in other branches
- 7.5 globallink.module \globallink_delete_field_configs()
- 7.6 globallink.module \globallink_delete_field_configs()
Removes all fields for content type from field config.
Parameters
string $type: The node content type.
2 calls to globallink_delete_field_configs()
- globallink_node_type_delete in ./
globallink.module - Implements hook_node_type_delete().
- globallink_node_type_update in ./
globallink.module - Implements hook_node_type_update().
File
- ./
globallink.module, line 821 - GlobalLink translation module.
Code
function globallink_delete_field_configs($type) {
db_delete('globallink_field_config')
->condition('content_type', $type, ' = ')
->execute();
}