function fonts_com_import_from_project in @font-your-face 7.2
Imports fonts from a given project.
1 call to fonts_com_import_from_project()
- fonts_com_project_edit_form_submit in modules/
fonts_com/ fonts_com.module - Saves changes to project.
File
- modules/
fonts_com/ fonts_com.module, line 782
Code
function fonts_com_import_from_project($project_id) {
module_load_include('inc', 'fonts_com', 'api');
$import_fonts = fonts_com_get_fonts_in_project($project_id);
foreach ($import_fonts as $import_font) {
$font = fonts_com_api_to_font($import_font);
fontyourface_save_font($font);
}
// foreach
}