MDL-68796 core_contentbank: Store view preferences
[moodle.git] / contentbank / classes / output / bankcontent.php
index 6574b04..5ac92e9 100644 (file)
@@ -97,6 +97,7 @@ class bankcontent implements renderable, templatable {
                 'type' => $mimetype
             );
         }
                 'type' => $mimetype
             );
         }
+        $data->viewlist = get_user_preferences('core_contentbank_view_list');
         $data->contents = $contentdata;
         $data->tools = $this->toolbar;
         return $data;
         $data->contents = $contentdata;
         $data->tools = $this->toolbar;
         return $data;