/** * Normalize parameters for field * * @param array $field * * @return array */ static function normalize($field) { $field = parent::normalize($field); $field['mime_type'] = 'image'; return $field; }
/** * Template for media item */ public static function print_templates() { parent::print_templates(); require_once RWMB_INC_DIR . 'templates/upload.php'; }
/** * Template for media item * @return void */ public static function print_templates() { parent::print_templates(); require_once RWMB_INC_DIR . 'templates/image-advanced.php'; }