function better_formats_delete_role in Better Formats 6
Same name and namespace in other branches
- 6.2 better_formats.module \better_formats_delete_role()
Deletes role format default entries for roles being deleted.
See also
1 string reference to 'better_formats_delete_role'
- better_formats_form_alter in ./
better_formats.module - Implementation of hook_form_alter().
File
- ./
better_formats.module, line 262 - Enhances Drupal's core input format settings.
Code
function better_formats_delete_role($form, &$form_state) {
// Delete role from format manager table.
$sql = "DELETE FROM {better_formats_defaults}\n WHERE rid = %d";
db_query($sql, $form['rid']['#value']);
}