/**
  * Delete the header as well as the corresponding image files, if any.
  *
  * @param bool $params
  *
  * @return mixed|void
  * @throws API_Exception
  */
 public function delete($params = FALSE)
 {
     // Delete the header image
     if ($params['image']) {
         static::deleteImage(array('field' => 'image', 'fileName' => $params['image']));
     }
     // Delete the logo image
     if ($params['logo_image']) {
         static::deleteImage(array('logo_field' => 'logo_image', 'fileName' => $params['logo_image']));
     }
     parent::delete($params);
 }
 /**
  * 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['simplemailheader'] =& $fields[$name];
                 } else {
                     self::$_export[$name] =& $fields[$name];
                 }
             }
         }
     }
     return self::$_export;
 }