You are here

function filebrowser_admin_settings_submit_update in Filebrowser 6

1 string reference to 'filebrowser_admin_settings_submit_update'
filebrowser_admin_settings in ./filebrowser.module

File

./filebrowser.module, line 245

Code

function filebrowser_admin_settings_submit_update($form, &$form_state) {
  foreach ($form_state['values']['listing_checks'] as $check) {
    if ($check) {
      db_query('DELETE FROM {filebrowser} WHERE path = "%s"', $check);
    }
  }

  // Make sure our entries are deleted from the menu system also
  menu_rebuild();
  drupal_set_message(t('Your directory listing has been updated'));
}