You are here

function fontyourface_ui_browse_page in @font-your-face 7.2

Redirects to the first enabled provider.

1 call to fontyourface_ui_browse_page()
fontyourface_ui_views_pre_render in modules/fontyourface_ui/fontyourface_ui.module
Implements hook_views_pre_render().
1 string reference to 'fontyourface_ui_browse_page'
fontyourface_ui_menu in modules/fontyourface_ui/fontyourface_ui.module
Implements hook_menu().

File

modules/fontyourface_ui/fontyourface_ui.module, line 728

Code

function fontyourface_ui_browse_page() {
  $providers = module_implements('fontyourface_info');
  if (count($providers) > 0) {
    drupal_goto('admin/appearance/fontyourface/browse/' . $providers[0]);
  }
  else {
    drupal_set_message(t('No font providers enabled. !enable before browsing fonts.', array(
      '!enable' => l(t('Enable font providers'), 'admin/modules'),
    )), 'error');
    return '';
  }

  // else
}