You are here

function fontyourface_admin_page in @font-your-face 6.2

Same name and namespace in other branches
  1. 6 fontyourface.module \fontyourface_admin_page()
  2. 7 fontyourface.module \fontyourface_admin_page()

Admin page shows enabled fonts with link to add.

1 string reference to 'fontyourface_admin_page'
fontyourface_menu in ./fontyourface.module
Implements hook_menu().

File

./fontyourface.module, line 545

Code

function fontyourface_admin_page() {
  $view = views_get_view('fontyourface_enabled');
  $view
    ->set_display('block_1');
  $output = $view
    ->preview();
  $output .= '<div>' . l('Browse fonts to enable.', 'admin/build/themes/fontyourface/add') . '</div>';
  return $output;
}