Examples demonstrating the backdrop File API (and Stream Wrappers).

File

modules/examples/file_example/file_example.module

Functions

Namesort ascending Description
file_example_unmanaged_write_submit Submit handler to write an unmanaged file.
file_example_unmanaged_php_submit Submit handler to write an unmanaged file using plain PHP functions.
file_example_stream_wrappers Implements hook_stream_wrappers().
file_example_show_session_contents_submit Utility submit function to show the contents of $_SESSION.
file_example_session_contents Show the contents of a session file.
file_example_read_submit Submit handler for reading a stream wrapper.
file_example_readwrite Form builder function.
file_example_permission Implements hook_permission().
file_example_menu Implements hook_menu().
file_example_managed_write_submit Submit handler to write a managed file.
file_example_intro A simple introduction to the workings of this module.
file_example_get_managed_file Utility function to check for and return a managed file.
file_example_file_check_exists_submit Submit handler to check existence of a file.
file_example_delete_submit Submit handler to delete a file.
file_example_delete_directory_submit Submit handler for directory deletion.
file_example_create_directory_submit Submit handler for directory creation.
file_example_check_directory_submit Submit handler to test directory existence.
file_example_autoload_info Implements hook_autoload_info().