Example #1
0
 /**
  * Ajax method to clean the name of the google font
  */
 public function clean_gfont_name()
 {
     // load the helper of the module
     if (file_exists(JPATH_ROOT . '/modules/mod_maximenuck/helper.php')) {
         require_once JPATH_ROOT . '/modules/mod_maximenuck/helper.php';
     } else {
         echo JText::_('CK_MODULE_MAXIMENUCK_NOT_INSTALLED');
         die;
     }
     $input = new JInput();
     $gfont = $input->get('gfont', '', 'string');
     $cleaned_gfont = modMaximenuckHelper::clean_gfont_name($gfont);
     echo $cleaned_gfont;
     die;
 }