Adds elgg_get_file_simple_type() to core

Adds refactoring to #7319 to add docs, clean up docblocks and style stuff.
Sexy and LGTM
On Oct 21, 2014 6:34 AM, "Steve Clay" <notifications@github.com> wrote:

> In engine/lib/deprecated-1.10.php:
>
> > + * @deprecated 1.10 Use elgg_get_file_simple_type()
> > + */
> > +function file_get_general_file_type($mime_type) {
> > +	elgg_deprecated_notice(__FUNCTION__ . ' is deprecated. Use elgg_get_file_simple_type()', '1.10');
> > +	return elgg_get_file_simple_type($mime_type);
> > +}
> > +
> > +/**
> > + * Returns the category of a file from its MIME type
> > + *
> > + * @param string $mime_type The MIME type
> > + *
> > + * @return string 'document', 'audio', 'video', or 'general' if the MIME type was unrecognized
> > + * @deprecated 1.10 Use elgg_get_file_simple_type()
> > + */
> > +function get_general_file_type($mime_type) {
>
> @hypeJunction <https://github.com/hypeJunction> disregard, I see.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Elgg/Elgg/pull/7352/files#r19129206>.
>