function media_type_invalid_files_count in D7 Media 7
Returns the number of files that need to be converted to media.
2 calls to media_type_invalid_files_count()
- media_admin_rebuild_types_form in includes/
media.admin.inc - Confirmation form for rebuliding the file_managed table to include type in rows where there is no type.
- media_install in ./
media.install - Implements hook_install().
File
- includes/
media.types.inc, line 243 - Helper functions related to media types. CRUD for saving their settings mainly.
Code
function media_type_invalid_files_count() {
return db_select('file_managed', 'fm')
->condition('type', FILE_TYPE_NONE)
->countQuery()
->execute()
->fetchField();
}