/**
  * Update menu.
  *
  * @param array $params
  * @param array $newParams
  *   New value of params.
  */
 public static function processUpdate($params, $newParams)
 {
     $dao = new CRM_Menufontawesome_DAO_Navigation();
     $dao->copyValues($params);
     if ($dao->find(TRUE)) {
         $dao->copyValues($newParams);
         $dao->save();
     }
 }
 /**
  * Returns the list of fields that can be exported
  *
  * @param bool $prefix
  *
  * @return array
  */
 static function &export($prefix = false)
 {
     if (!self::$_export) {
         self::$_export = array();
         $fields = self::fields();
         foreach ($fields as $name => $field) {
             if (CRM_Utils_Array::value('export', $field)) {
                 if ($prefix) {
                     self::$_export['navigation'] =& $fields[$name];
                 } else {
                     self::$_export[$name] =& $fields[$name];
                 }
             }
         }
     }
     return self::$_export;
 }