You are here

function better_formats_delete_role in Better Formats 6

Same name and namespace in other branches
  1. 6.2 better_formats.module \better_formats_delete_role()

Deletes role format default entries for roles being deleted.

See also

better_formats_form_alter()

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']);
}