You are here

function filebrowser_strip_requirements in Filebrowser 6

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

File

./filebrowser.module, line 202

Code

function filebrowser_strip_requirements($form, $form_state) {
  if (isset($form_state['clicked_button']) && $form_state['clicked_button']['#value'] == t('Update directory listings')) {
    $form['new_listing']['path']['#required'] = false;
    $form['new_listing']['location']['#required'] = false;
  }
  return $form;
}