diff --git a/inline_entity_form.module b/inline_entity_form.module
index 8f229f7..7b48368 100644
--- a/inline_entity_form.module
+++ b/inline_entity_form.module
@@ -301,6 +301,9 @@ function inline_entity_form_field_widget_settings_form($field, $instance) {
  * by the field type.
  */
 function inline_entity_form_field_widget_properties_alter(&$widget, $context) {
+  if(!module_exists('views')){
+    return;
+  }
   $view = views_get_current_view();
   $is_ief_widget = (strpos($widget['type'], 'inline_entity_form') === 0);
   $has_vbo = module_exists('views_bulk_operations');
