Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.29 KB

add_file_display_callback.rst

File metadata and controls

44 lines (30 loc) · 1.29 KB

add_file_display_callback — Add a callback for displaying files with a given mimetype and/or extension.

:doc:`Plugin-related functions </Reference/packages/Function/Plugin/index>`

Summary

.. php:function:: add_file_display_callback($fileIdentifiers, $callback, $options = array())

    Add a callback for displaying files with a given mimetype and/or
    extension.

    :type $fileIdentifiers: array|string
    :param $fileIdentifiers: Set of MIME types and/or file extensions to which the provided callback will respond.
    :type $callback: callback
    :param $callback: Any valid callback.
    :type $options: array
    :param $options:

Usage

Examples

See Also