You are here

function filebrowser_admin_settings_submit_add in Filebrowser 6

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

File

./filebrowser.module, line 233

Code

function filebrowser_admin_settings_submit_add($form, &$form_state) {
  db_query('INSERT INTO {filebrowser} (path, location, can_explore) VALUES ("%s", "%s", %d)', $form_state['values']['path'], $form_state['values']['location'], $form_state['values']['can_explore']);

  // Make sure our entries are deleted from the menu system also
  // TODO: See if there's a lighter-weight function to update the menu
  // for just this module
  menu_rebuild();
  drupal_set_message(t('Your directory listing has been added'));
}